From 830c80ca660ca3f51e284389371f2347df892d86 Mon Sep 17 00:00:00 2001 From: Marek Date: Tue, 4 Jul 2017 09:59:41 +0200 Subject: [PATCH] command-line-commands - optional param fix --- types/command-line-commands/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/command-line-commands/index.d.ts b/types/command-line-commands/index.d.ts index ea8d66a8ea..cf69198dac 100644 --- a/types/command-line-commands/index.d.ts +++ b/types/command-line-commands/index.d.ts @@ -11,7 +11,7 @@ * @returns {{ command: string, argv: string[] }} * @throws `INVALID_COMMAND` - user supplied a command not specified in `commands`. */ -declare function commandLineCommands(commands: (string | null)[], argv: string[]): { command: string | null, argv: string[] }; +declare function commandLineCommands(commands: (string | null)[], argv?: string[]): { command: string | null, argv: string[] }; export = commandLineCommands;