Commit Graph

9 Commits

Author SHA1 Message Date
Su-Shing Chen
8d87c67236 [@types/when] Fix when.js then() when TResult is a subtype of T (#25110)
* Fix when.js then() when TResult is a subtype of T

Change the order of .then overrides to deprioritize no generics.

* Move the more specific overload to the top
2018-04-24 17:20:45 -07:00
Su-Shing Chen
eabc8ca762 [@types/when] Make when.js promises compatible with native promises (#24904)
* Make when.js promises compatible with native promises

* Stricter compiler options and fix revealed issues

- Remove optional parameters from callbacks
- Replace `Number` type with `number`
- Improve type checking of when.settle and promise.inspect

* Add stricter types and backwards compatibility

* Minor renaming
2018-04-18 12:45:15 -07:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Andy
219dd6df82 Fix 'prefer-readonly' lint failures (#22819) 2018-01-10 14:59:37 -08:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Alex Frieder
263377ba1c Fix optional parameter for when.js done 2017-05-18 23:14:59 -04:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00