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

@ -297,7 +297,7 @@ export declare interface DoCheck {
ngDoCheck(): void;
}
export declare class ElementRef<T extends any = any> {
export declare class ElementRef<T = any> {
nativeElement: T;
constructor(nativeElement: T);
}
@ -313,7 +313,7 @@ export declare class ErrorHandler {
handleError(error: any): void;
}
export declare class EventEmitter<T extends any> extends Subject<T> {
export declare class EventEmitter<T> extends Subject<T> {
constructor(isAsync?: boolean);
emit(value?: T): void;
subscribe(generatorOrNext?: any, error?: any, complete?: any): Subscription;
@ -974,7 +974,7 @@ export declare function ɵɵresolveWindow(element: RElement & {
ownerDocument: Document;
}): {
name: string;
target: Window | null;
target: (Window & typeof globalThis) | null;
};
export declare function ɵɵrestoreView(viewToRestore: OpaqueViewState): void;