18 Commits
Author SHA1 Message Date
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
Andrey Kurdyumov e1699c4108 Create typed version of reject
That is necessary for smooth migration to TypeScript target ES6.
2016-02-22 01:05:17 +06:00
vvakame 9027703c0b pass npm run all in new definition-tester 2016-02-10 00:16:03 +09:00
Sean Kelley 830e8ebd9e Rename the type variable for es6-promise from R to T to match lib.d.ts.
This fixes an issue where two definitions for Promise that /should/ agree
(i.e., be assignable to one another) aren't, and instead the immensely
confusing error message:

    error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s).

Even though all the present definitions are paramaterized with a single type
variable, Typescript appears to assume that the two different names are
referring to two different types and therefore you must supply both. Here I
changed it to T from R so that it matches lib.d.ts.

For reference, this error occured for me specifically when I had both
es6-promise and bluebird typings present. bluebird uses T already.
2016-02-03 12:41:35 -08:00
Will Johnston 5bff5f871a adding catch onto Thenable, updating tests 2016-01-15 12:19:16 -06:00
ideadapt 1dd3cfcdfc Small typo in ctor docs 2015-11-19 19:58:42 +01:00
Jason Freeman 35119c83fe Add the actual typing fix 2015-05-06 16:17:02 -07:00
Jason Freeman eea6c97557 Fix ES6 Promise typings so that a void error callback does not mess up inference 2015-05-06 16:11:31 -07:00
Chris Colbert 7f9ae75f8c update signature of Promise.all and Promise.race 2015-02-25 11:51:47 -05:00
vvakame 2acfc3ec2f fix travis ci failed 2015-01-29 01:23:16 +09:00
vvakame c95561be35 update es6-promise/es6-promise.d.ts 2015-01-29 01:19:17 +09:00
error 67469b12e4 remove cast method 2014-10-27 10:31:35 -05:00
tarh 36a701008e Parameter names conform to http://promises-aplus.github.io/promises-spec/ 2014-07-06 08:35:29 +01:00
tarh a685b7db7a Works with more use cases 2014-07-05 14:33:21 +01:00
tarh f8f170dd81 Uniform naming parameters 2014-07-05 14:23:33 +01:00
basarat ceda8851c9 chore(es6-promise) rename files/folder to match the npm name 2014-07-05 21:11:49 +10:00