mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 18:13:38 +08:00
refactor(@angular-devkit/core): add generic type to Promise constructors
This is in preparation to support TypeScript 4.1. Within TypeScript 4.1 constructed Promises must specify the resolved type.
This commit is contained in:
parent
acc22a399f
commit
8874ef430a
@ -316,7 +316,7 @@ describe('SimpleScheduler', () => {
|
||||
return new Observable<number>(observer => {
|
||||
function fn() {
|
||||
if (keepGoing) {
|
||||
const p = new Promise(r => resolves.push(r));
|
||||
const p = new Promise<void>(r => resolves.push(r));
|
||||
|
||||
observer.next(argument);
|
||||
done.push(argument);
|
||||
|
Loading…
x
Reference in New Issue
Block a user