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:
Charles Lyding 2020-11-04 14:01:22 -05:00 committed by Alan Agius
parent acc22a399f
commit 8874ef430a

View File

@ -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);