build: TypeScript 3.5 upgrade (#31615)
https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#typescript-35 PR Close #31615
This commit is contained in:
2
tools/public_api_guard/common/testing.d.ts
vendored
2
tools/public_api_guard/common/testing.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
export declare const MOCK_PLATFORM_LOCATION_CONFIG: InjectionToken<{}>;
|
||||
export declare const MOCK_PLATFORM_LOCATION_CONFIG: InjectionToken<MockPlatformLocationConfig>;
|
||||
|
||||
export declare class MockLocationStrategy extends LocationStrategy {
|
||||
internalBaseHref: string;
|
||||
|
6
tools/public_api_guard/core/core.d.ts
vendored
6
tools/public_api_guard/core/core.d.ts
vendored
@ -309,7 +309,7 @@ export interface DoCheck {
|
||||
ngDoCheck(): void;
|
||||
}
|
||||
|
||||
export declare class ElementRef<T = any> {
|
||||
export declare class ElementRef<T extends any = any> {
|
||||
nativeElement: T;
|
||||
constructor(nativeElement: T);
|
||||
}
|
||||
@ -325,7 +325,7 @@ export declare class ErrorHandler {
|
||||
handleError(error: any): void;
|
||||
}
|
||||
|
||||
export declare class EventEmitter<T> extends Subject<T> {
|
||||
export declare class EventEmitter<T extends any> extends Subject<T> {
|
||||
__isAsync: boolean;
|
||||
constructor(isAsync?: boolean);
|
||||
emit(value?: T): void;
|
||||
@ -1089,7 +1089,7 @@ export declare function ɵɵstylingApply(): void;
|
||||
|
||||
export declare function ɵɵtemplate(index: number, templateFn: ComponentTemplate<any> | null, consts: number, vars: number, tagName?: string | null, attrs?: TAttributes | null, localRefs?: string[] | null, localRefExtractor?: LocalRefExtractor): void;
|
||||
|
||||
export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: LView): ViewEngine_TemplateRef<{}> | null;
|
||||
export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: LView): ViewEngine_TemplateRef<unknown> | null;
|
||||
|
||||
export declare function ɵɵtext(index: number, value?: any): void;
|
||||
|
||||
|
10
tools/public_api_guard/forms/forms.d.ts
vendored
10
tools/public_api_guard/forms/forms.d.ts
vendored
@ -241,7 +241,7 @@ export declare class FormControlDirective extends NgControl implements OnChanges
|
||||
isDisabled: boolean;
|
||||
/** @deprecated */ model: any;
|
||||
readonly path: string[];
|
||||
/** @deprecated */ update: EventEmitter<{}>;
|
||||
/** @deprecated */ update: EventEmitter<any>;
|
||||
readonly validator: ValidatorFn | null;
|
||||
viewModel: any;
|
||||
constructor(validators: Array<Validator | ValidatorFn>, asyncValidators: Array<AsyncValidator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[], _ngModelWarningConfig: string | null);
|
||||
@ -257,7 +257,7 @@ export declare class FormControlName extends NgControl implements OnChanges, OnD
|
||||
/** @deprecated */ model: any;
|
||||
name: string;
|
||||
readonly path: string[];
|
||||
/** @deprecated */ update: EventEmitter<{}>;
|
||||
/** @deprecated */ update: EventEmitter<any>;
|
||||
readonly validator: ValidatorFn | null;
|
||||
constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<AsyncValidator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[], _ngModelWarningConfig: string | null);
|
||||
ngOnChanges(changes: SimpleChanges): void;
|
||||
@ -301,7 +301,7 @@ export declare class FormGroupDirective extends ControlContainer implements Form
|
||||
directives: FormControlName[];
|
||||
form: FormGroup;
|
||||
readonly formDirective: Form;
|
||||
ngSubmit: EventEmitter<{}>;
|
||||
ngSubmit: EventEmitter<any>;
|
||||
readonly path: string[];
|
||||
readonly submitted: boolean;
|
||||
constructor(_validators: any[], _asyncValidators: any[]);
|
||||
@ -374,7 +374,7 @@ export declare class NgForm extends ControlContainer implements Form, AfterViewI
|
||||
};
|
||||
form: FormGroup;
|
||||
readonly formDirective: Form;
|
||||
ngSubmit: EventEmitter<{}>;
|
||||
ngSubmit: EventEmitter<any>;
|
||||
options: {
|
||||
updateOn?: FormHooks;
|
||||
};
|
||||
@ -415,7 +415,7 @@ export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
|
||||
updateOn?: FormHooks;
|
||||
};
|
||||
readonly path: string[];
|
||||
update: EventEmitter<{}>;
|
||||
update: EventEmitter<any>;
|
||||
readonly validator: ValidatorFn | null;
|
||||
viewModel: any;
|
||||
constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<AsyncValidator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
|
||||
|
Reference in New Issue
Block a user