command-line-commands - optional param fix

This commit is contained in:
Marek
2017-07-04 09:59:41 +02:00
parent 4b0e59abeb
commit 830c80ca66
+1 -1
View File
@@ -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;