From 36fc5f5e5c435e83d1ce1e981d2fdea8dcd21707 Mon Sep 17 00:00:00 2001 From: Adrien Samson Date: Wed, 7 Jun 2017 16:48:07 +0200 Subject: [PATCH] node-getopt: options can be boolean, string or string[] --- types/node-getopt/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 {