build: prepare for TypeScript 3.9 (#36989)

- Fix several compilation errors
- Update @microsoft/api-extractor to be compatible with TypeScript 3.9

PR Close #36989
This commit is contained in:
Alan Agius
2020-05-12 08:19:59 +01:00
committed by Kara Erickson
parent b58bd2bb91
commit 13ba84731f
28 changed files with 384 additions and 855 deletions

View File

@ -36,7 +36,7 @@ function asyncValidator(expected: string, timeouts = {}): AsyncValidatorFn {
}
function asyncValidatorReturningObservable(c: AbstractControl) {
const e = new EventEmitter();
const e = new EventEmitter<Record<string, boolean>>();
Promise.resolve(null).then(() => {
e.emit({'async': true});
});