feat: export a proper promise type.

Promise used to be typed as any, giving incorrect results. This change
fixes places that were incorrectly typed and re-exports the actual
Promise type from es6-promise.

It also fixes a series of compilation errors discovered/triggered by
this change.
This commit is contained in:
Martin Probst
2015-06-23 22:02:20 -07:00
parent 27aa9187f0
commit 861be30021
2 changed files with 3 additions and 1 deletions
@@ -77,11 +77,13 @@ export function main() {
PromiseWrapper.then(one.promise, (_) => {
expect(allCalled).toBe(false);
two.resolve('two');
return null;
});
PromiseWrapper.then(all, (_) => {
allCalled = true;
async.done();
return null;
});
one.resolve('one');