Commit Graph

19 Commits

Author SHA1 Message Date
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
MikeDimmickMnetics
c686efd51b [q] Allow thenReject to return a promise for a different type (#23029)
* Change the Promise.thenReject signature to allow matching of a
  different type.

Type-checking rejections is problematic as it's equivalent to `throw`:
you don't get a value of type T in your success callback. You get
an Error (or other thrown type) in an error callback.
2018-01-19 12:22:15 -08:00
Andy
219dd6df82
Fix 'prefer-readonly' lint failures (#22819) 2018-01-10 14:59:37 -08:00
Andy
30957ad3d8
Remove // tslint:disable comments (#22198) 2017-12-14 13:24:24 -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
2d90ef60b0 q: Fix lint (#20801) 2017-10-23 08:08:36 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Nathan Shively-Sanders
b8ea87c68e Strict function variance fixes round 1 2017-10-02 15:50:34 -07:00
Andy
cb2dbfbb50 Add ignores for new lint rules (#19504) 2017-09-01 07:47:52 -07:00
Andy
92d393285c q/v0: Fix definition of "all" to be like q v1 (#19272) 2017-08-28 09:09:19 -07:00
Daniel Rosenwasser
2bb28caad6 Merge pull request #19024 from mboudreau/master
q.reject parameter is optional
2017-08-22 11:08:45 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Michel Boudreau
a820554d15 q.reject parameter is optional 2017-08-16 21:37:46 +10:00
Eric Wieser
4331ee51ba Add Q.Promise.all, the member function (#18308) 2017-07-27 06:49:34 -07:00
Michel Boudreau
9ecdd3cbcb Updating Q to have optional resolves (#18200)
* Remove export as namespace

This particular file was causing me issues with the new typings-2.0 since it doesn't support exporting namespaces from within modules.

* Updating Q to have optional resolves, adding tslint file, fixing tests compilation

* forgot to merge in latest from upstream, replicated the changes into new folder structure

* adding tslint to q

* latest changes to please tslint, but is currently breaking the .all tests - still need to fix

* fixing the reason why the tests was failing, a problem with Typescript trying to decipher the signature of arrays within function arguments that are unionized, updating tslint to ignore those issues

* whoops, messed up header which failed linting
2017-07-23 18:15:25 -07:00
Nathan Shively-Sanders
019645c0d1 Q: use PromiseLike and fix Q.all type inference
1. Q's IPromise changes to become the standard PromiseLike in order to fix
assignability in TS 2.4, which is more strict.
2. Q.all splits into more overloads in order to fix type parameter
inference in TS 2.4, which is more strict.
2017-06-27 13:00:17 -07:00
Leonard Thieu
1c3565933c :( 2017-06-13 13:00:42 -04:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00