diff --git a/types/node-getopt/index.d.ts b/types/node-getopt/index.d.ts index 304f09bd4c..afd0a89adf 100644 --- a/types/node-getopt/index.d.ts +++ b/types/node-getopt/index.d.ts @@ -8,8 +8,8 @@ */ -interface StringMap { - [index: string]: string; +interface OptionMap { + [index: string]: string | string[] | boolean; } /** @@ -17,14 +17,14 @@ interface StringMap { */ declare class ParsedOption { public argv: string[]; - public options: StringMap; + public options: OptionMap; - constructor(argv: string[], options: StringMap); + constructor(argv: string[], options: OptionMap); public empty(): boolean; } interface EventCallback { - (args: string[], options: StringMap): void; + (args: string[], options: OptionMap): void; } interface ErrorFunc {