build: TypeScript 3.5 upgrade (#31615)

https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#typescript-35

PR Close #31615
This commit is contained in:
Igor Minar
2019-07-17 17:49:16 -07:00
committed by Miško Hevery
parent 3a2b195a58
commit 6ece7db37a
34 changed files with 196 additions and 65 deletions

View File

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

View File

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

View File

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

View File

@ -17,7 +17,7 @@
"test": "test"
},
"peerDependencies": {
"typescript": "~3.4.0"
"typescript": "~3.5.3"
},
"dependencies": {
"chalk": "^2.3.1",
@ -33,7 +33,7 @@
"chai": "^4.1.2",
"jasmine": "^3.1.0",
"source-map-support": "^0.5.9",
"typescript": "~3.4.2"
"typescript": "~3.5.3"
},
"repository": {},
"keywords": [