From 70a17401f6388a2121a9ccaa195dbef586f071b0 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Fri, 19 Jun 2015 12:27:58 -0500 Subject: [PATCH] Reflect actual Argv#check() usage in check() type declaration --- yargs/yargs.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yargs/yargs.d.ts b/yargs/yargs.d.ts index 6a6adebe8..0e42090fc 100644 --- a/yargs/yargs.d.ts +++ b/yargs/yargs.d.ts @@ -57,8 +57,7 @@ declare module "yargs" { example(command: string, description: string): Argv; - check(func: (argv: { [key: string]: any }, aliases: { [alias: string]: string }) => boolean): Argv; - check(func: (argv: { [key: string]: any }, aliases: { [alias: string]: string }) => string): Argv; + check(func: (argv: any, aliases: { [alias: string]: string }) => any): Argv; boolean(key: string): Argv; boolean(keys: string[]): Argv;