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;