Changes
- Where constructor functions are exported from modules, provide a type alias for the type, which means that you don't have to reference the namespaced type name (see #16). For example:
import * as Deferred from 'dojo/Deferred';
interface Foo {
dfd: Deferred<any>;
}
/* previously you would have had to */
interface Bar {
dfd: dojo.Deferred<any>;
}
- Add
dojox/color/_base
and dojox/color/Colorspace
typings
- Callbacks from
.then()
for Deferred
and Promise
did not have the correct return signature to allowed chained .then()
functions to resolve the type of the resolution value. Now they do.