DefinitelyTyped/types/yargs
steffenvv ffdeb117ad yargs: Infer types of parsed options (#31000)
* Updated typings for yargs, inferring the shape of the parsed arguments.

* Fix lint errors.

* Use $ExpectType, and add more tests.

* Updated comments.

* Slight improvement to alias, organize tests more systematically.

* Fix for count, more tests.

* More restructuring of tests.

* Handle optional vs. required options.

* Consistently use [key in ... for mapped types.

* Improve handling of arrays, defaulting to (string | number)[].

* More improvements to array/number/string handling, and use Omit to reset types for repeated options.

* More precise usage of Omit, fix ToString and ToNumber.

* Remove blank line, keeping the alias overloads in one group..

* Bump required TypeScript version in yargs-parser to match yargs, and adapt the Arguments type.

* Use ReadonlyArray for choices.
2018-12-19 16:18:48 -08:00
..
v8
v10
v11
.editorconfig
index.d.ts
tsconfig.json
tslint.json
yargs-tests.ts