Skip to content

Commit f301888

Browse files
committed
Merge pull request DefinitelyTyped#4678 from chbrown/yargs-check-args-return
Reflect actual Argv#check() usage in check() type declaration
2 parents a1e27f6 + 70a1740 commit f301888

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

yargs/yargs.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ declare module "yargs" {
5757

5858
example(command: string, description: string): Argv;
5959

60-
check(func: (argv: { [key: string]: any }, aliases: { [alias: string]: string }) => boolean): Argv;
61-
check(func: (argv: { [key: string]: any }, aliases: { [alias: string]: string }) => string): Argv;
60+
check(func: (argv: any, aliases: { [alias: string]: string }) => any): Argv;
6261

6362
boolean(key: string): Argv;
6463
boolean(keys: string[]): Argv;

0 commit comments

Comments
 (0)