refactor(router): compile router cleanly with TypeScript 2.4 (#18465)
This commit is contained in:

committed by
Victor Berchet

parent
81cb5bc3a7
commit
3a227a1f6f
@ -1820,7 +1820,7 @@ describe('Integration', () => {
|
||||
|
||||
function delayPromise(delay: number): Promise<boolean> {
|
||||
let resolve: (val: boolean) => void;
|
||||
const promise = new Promise(res => resolve = res);
|
||||
const promise = new Promise<boolean>(res => resolve = res);
|
||||
setTimeout(() => resolve(true), delay);
|
||||
return promise;
|
||||
}
|
||||
|
Reference in New Issue
Block a user