Andy
ae4fe7b6de
Use "lib" in tsconfigs instead of "target". ( #13968 )
...
* Use "lib" in tsconfigs instead of "target".
Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.
* Update new-package and readme
* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Andy
3d6a15ee16
Strip BOM from all files ( #13735 )
2017-01-04 12:07:53 -08:00
Jack Moore
39fa6c8445
Yargs: .version with no arguments
2016-12-20 13:59:41 -08:00
Andy
a4bd9fa3c1
Add "noImplicitThis" to all tsconfig.json ( #13446 )
...
* Add "noImplicitThis" to all tsconfig.json
* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
Niklas Mollenhauer
19f558b6c6
Fix command overloads
2016-11-21 21:24:46 +01:00
Niklas Mollenhauer
3a425d6731
Fix builder function return type
2016-11-18 18:58:23 +01:00
jeff
fbbc69d437
Fix typing for desc/describe/description.
2016-11-09 12:59:28 -08:00
jeff
f2094c6d27
Fix typings in yargs.
...
Fixed valid keys to the Options argument object. Fixed a couple linting issues.
2016-11-09 11:14:54 -08:00
Jan Michael Alonzo
0052449e29
[Yargs] Allow Command modules to be passed into command fn ( #12524 )
...
* [Yargs] Allow Command modules to be passed into command fn
* [yargs] Remove I prefix in CommandModule
* [Yargs] Replace Array<> with string[]
* Make builder, command, describe optional; Handle (c, d, m) command signature
2016-11-09 00:03:45 +09:00
Jeffery Grajkowski
f71bca5275
Updated yargs to 6.3.0 ( #12356 )
...
* Updated yargs to 6.3.0
* Added more tests cases for yargs.
Made a couple improvements to the typings in the process.
2016-11-02 22:38:19 +09:00
Elisée Maurer
674de3e822
Add max argument overload to yargs.demand ( #12336 )
...
* Add max argument overload to yargs.demand
* Add yargs.demand variant with max but without msg
* yargs: Add some tests for .demand overloads
* yargs: Use ? instead of separate overload definition
* Merge tests fix from 640b1b735555ee4766e4f4428f54c98fd01427c8
2016-11-01 21:56:56 +09:00
Andy
e515b24a20
Change order of overloads so that user code doesn't need parameter type declarations. ( #12389 )
2016-11-01 05:45:51 -07:00
Andy
31e8512c8c
Fix failing tests ( #12344 )
2016-10-29 13:42:54 -07:00
zhengbli
2f4b18f28f
stage changes to index.d.ts
2016-10-24 22:52:02 -07:00
Mizunashi Mana
2a09ec44d5
Fix yargs type definitions ( #11823 )
2016-10-08 10:34:17 -07:00
mgroenhoff
1be288e7e1
Add missing terminalWidth method to yargs. ( #11779 )
2016-10-06 10:03:03 -07:00
Nathan Shively-Sanders
15c9fdbdf1
Merge branch 'master' into types-2.0
2016-08-09 15:41:20 -07:00
jan-molak
79aec36f24
Corrected the indentation and added a test to cover the optional configuration object that can be passed to commandDir
2016-08-08 20:10:57 +01:00
jan-molak
18d922366a
Updated to match the command signature as of 4.8.1 and updated the tests
2016-08-08 13:51:42 +01:00
jan-molak
a54edba691
Updated to match the command signature as of 4.8.1
2016-08-08 13:18:41 +01:00
Ryan Cavanaugh
c73630c9a3
Merge commit 'upstream/master~400' into merge_7_25
...
# Conflicts:
# angular-translate/angular-translate.d.ts
# knex/knex.d.ts
# redux-logger/index.d.ts
# simplestorage.js/index.d.ts
# underscore/underscore.d.ts
# yargs/yargs.d.ts
2016-07-26 13:53:00 -07:00
Ryan Cavanaugh
a5f4d50ccc
Fix tsconfig files for new option name / behavior.
...
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Raghav Katyal
395c4e1639
Turning on consistent casing flag and fixing failures
2016-06-30 15:14:49 -07:00
Gevik Babakhani
27896d899d
Updated to match the command signature as of 4.7.1 ( #9693 )
2016-06-19 12:36:36 +09:00
Ryan Cavanaugh
bfd400a8f8
Add noEmit to all config files
2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
50387d4046
Change relative reference paths to types references. Errors incoming...
2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38
Rename all entry points to index.d.ts and explicitify all file lists
2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5
Add typesRoot to all config files
2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
81862d240d
More fixes
2016-05-04 22:50:05 -07:00
Ryan Cavanaugh
ded70421be
Turn off strict null checks
2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a
Add tsconfig.json files
2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
fa204a87d1
Remove obsolesced reference comments
2016-04-27 21:53:46 -07:00
Ryan Cavanaugh
337587de8c
Rename external modules to index.d.ts
2016-04-27 21:30:22 -07:00
Ryan Cavanaugh
e7c111c4b7
Merge remote-tracking branch 'upstream/master' into types2.0
...
Add tsconfig files everywhere
# Conflicts:
# azure-mobile-services-client/AzureMobileServicesClient.d.ts
# bookshelf/bookshelf.d.ts
# hapi/hapi.d.ts
# helmet/helmet.d.ts
# mongodb/mongodb.d.ts
# nock/nock.d.ts
# react-bootstrap/react-bootstrap.d.ts
# react-helmet/react-helmet.d.ts
# restify/restify.d.ts
# sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
Ryan Cavanaugh
4a433abbf4
Unwrap all lone ambient external modules
2016-04-22 14:12:45 -07:00
Masahiro Wakame
b5fe1dd614
Merge pull request #8559 from Dru89/patch-1
...
Update yargs with new options and methods from 4.x
2016-03-26 21:44:07 +09:00
Drew Hays
9a317bdcc6
add boolean entry for env
2016-03-21 09:02:04 -07:00
vvakame
7de6c3dd94
Merge branch 'master' into rename-repo-url
2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4
replace internal module to namespace
2016-03-17 02:18:10 +09:00
vvakame
56295f5058
replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped
2016-03-17 00:55:26 +09:00
Drew Hays
b05e08bde0
add tests, correct some options
2016-03-14 21:10:41 -07:00
Drew Hays
c458f90930
Add some missing methods and options to yargs.d.ts
...
Added some missing methods and options from the documentation of yargs
2016-03-14 20:43:38 -07:00
vvakame
4de74cb527
normalize line ending (CRLF -> LF)
2016-02-16 01:20:30 +09:00
Olivier CHEVET
6a287502da
Added missing functions from version 3.31
...
- reset
- epilog/epilogue
- locale
- detectLocale
- choices
- exitProcess
Added an extra prototype for version, accepting a function argument
2016-01-17 17:38:52 +01:00
Niklas Mollenhauer
c2b51380cb
Fix indent
2015-10-07 21:27:48 +02:00
Niklas Mollenhauer
9ccd609dbd
Add completion function
2015-10-07 21:20:13 +02:00
Niklas Mollenhauer
2d69a5f8bf
Add optional function parameter to command()
2015-10-07 20:56:13 +02:00
Christopher Brown
70a17401f6
Reflect actual Argv#check() usage in check() type declaration
2015-06-19 12:32:23 -05:00
Christopher Brown
aeedf99784
Add Argv#command(...) to yargs
2015-05-03 23:18:08 -05:00
peferron
d614330899
yargs: make 2nd parameter of version() optional
2015-04-15 12:58:47 -07:00