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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user