Files
DefinitelyTyped/es6-promise
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
..