mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add yargs.strict(boolean)
This commit is contained in:
parent
d5fe4dcadb
commit
cfbafa4e8b
1
types/yargs/index.d.ts
vendored
1
types/yargs/index.d.ts
vendored
@ -226,6 +226,7 @@ declare namespace yargs {
|
||||
skipValidation(key: string | ReadonlyArray<string>): Argv<T>;
|
||||
|
||||
strict(): Argv<T>;
|
||||
strict(enabled: boolean): Argv<T>;
|
||||
|
||||
string<K extends keyof T>(key: K | ReadonlyArray<K>): Argv<Omit<T, K> & { [key in K]: ToString<T[key]> }>;
|
||||
string<K extends string>(key: K | ReadonlyArray<K>): Argv<T & { [key in K]: string | undefined }>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user