build: update API Golden files after node 12 update (#34955)
PR Close #34955
This commit is contained in:
parent
8fbb48cc2e
commit
b3bd6ca925
|
@ -3,10 +3,10 @@ export declare const APP_BASE_HREF: InjectionToken<string>;
|
||||||
export declare class AsyncPipe implements OnDestroy, PipeTransform {
|
export declare class AsyncPipe implements OnDestroy, PipeTransform {
|
||||||
constructor(_ref: ChangeDetectorRef);
|
constructor(_ref: ChangeDetectorRef);
|
||||||
ngOnDestroy(): void;
|
ngOnDestroy(): void;
|
||||||
|
transform<T>(obj: null): null;
|
||||||
|
transform<T>(obj: undefined): undefined;
|
||||||
transform<T>(obj: Observable<T> | null | undefined): T | null;
|
transform<T>(obj: Observable<T> | null | undefined): T | null;
|
||||||
transform<T>(obj: Promise<T> | null | undefined): T | null;
|
transform<T>(obj: Promise<T> | null | undefined): T | null;
|
||||||
transform<T>(obj: undefined): undefined;
|
|
||||||
transform<T>(obj: null): null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export declare class CommonModule {
|
export declare class CommonModule {
|
||||||
|
@ -214,8 +214,8 @@ export declare class NgComponentOutlet implements OnChanges, OnDestroy {
|
||||||
export declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {
|
export declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {
|
||||||
set ngForOf(ngForOf: (U & NgIterable<T>) | undefined | null);
|
set ngForOf(ngForOf: (U & NgIterable<T>) | undefined | null);
|
||||||
set ngForTemplate(value: TemplateRef<NgForOfContext<T, U>>);
|
set ngForTemplate(value: TemplateRef<NgForOfContext<T, U>>);
|
||||||
get ngForTrackBy(): TrackByFunction<T>;
|
|
||||||
set ngForTrackBy(fn: TrackByFunction<T>);
|
set ngForTrackBy(fn: TrackByFunction<T>);
|
||||||
|
get ngForTrackBy(): TrackByFunction<T>;
|
||||||
constructor(_viewContainer: ViewContainerRef, _template: TemplateRef<NgForOfContext<T, U>>, _differs: IterableDiffers);
|
constructor(_viewContainer: ViewContainerRef, _template: TemplateRef<NgForOfContext<T, U>>, _differs: IterableDiffers);
|
||||||
ngDoCheck(): void;
|
ngDoCheck(): void;
|
||||||
static ngTemplateContextGuard<T, U extends NgIterable<T>>(dir: NgForOf<T, U>, ctx: any): ctx is NgForOfContext<T, U>;
|
static ngTemplateContextGuard<T, U extends NgIterable<T>>(dir: NgForOf<T, U>, ctx: any): ctx is NgForOfContext<T, U>;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,8 +3,8 @@ export declare class $locationShim {
|
||||||
$$parse(url: string): void;
|
$$parse(url: string): void;
|
||||||
$$parseLinkUrl(url: string, relHref?: string | null): boolean;
|
$$parseLinkUrl(url: string, relHref?: string | null): boolean;
|
||||||
absUrl(): string;
|
absUrl(): string;
|
||||||
hash(hash: string | number | null): this;
|
|
||||||
hash(): string;
|
hash(): string;
|
||||||
|
hash(hash: string | number | null): this;
|
||||||
host(): string;
|
host(): string;
|
||||||
onChange(fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void, err?: (e: Error) => void): void;
|
onChange(fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void, err?: (e: Error) => void): void;
|
||||||
path(): string;
|
path(): string;
|
||||||
|
@ -21,8 +21,8 @@ export declare class $locationShim {
|
||||||
search(search: string | number | {
|
search(search: string | number | {
|
||||||
[key: string]: unknown;
|
[key: string]: unknown;
|
||||||
}, paramValue: null | undefined | string | number | boolean | string[]): this;
|
}, paramValue: null | undefined | string | number | boolean | string[]): this;
|
||||||
state(state: unknown): this;
|
|
||||||
state(): unknown;
|
state(): unknown;
|
||||||
|
state(state: unknown): this;
|
||||||
url(): string;
|
url(): string;
|
||||||
url(url: string): this;
|
url(url: string): this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,8 +58,8 @@ export interface TestBed {
|
||||||
configureTestingModule(moduleDef: TestModuleMetadata): void;
|
configureTestingModule(moduleDef: TestModuleMetadata): void;
|
||||||
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
||||||
execute(tokens: any[], fn: Function, context?: any): any;
|
execute(tokens: any[], fn: Function, context?: any): any;
|
||||||
/** @deprecated */ get(token: any, notFoundValue?: any): any;
|
|
||||||
/** @deprecated */ get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
/** @deprecated */ get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
||||||
|
/** @deprecated */ get(token: any, notFoundValue?: any): any;
|
||||||
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): void;
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): void;
|
||||||
inject<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
inject<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
||||||
inject<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
inject<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
||||||
|
@ -95,15 +95,19 @@ export interface TestBedStatic {
|
||||||
}): TestBedStatic;
|
}): TestBedStatic;
|
||||||
configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
||||||
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
||||||
/** @deprecated */ get(token: any, notFoundValue?: any): any;
|
|
||||||
/** @deprecated */ get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
/** @deprecated */ get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
||||||
|
/** @deprecated */ get(token: any, notFoundValue?: any): any;
|
||||||
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): TestBed;
|
initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): TestBed;
|
||||||
inject<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
|
||||||
inject<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
inject<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue?: T, flags?: InjectFlags): T;
|
||||||
|
inject<T>(token: Type<T> | InjectionToken<T> | AbstractType<T>, notFoundValue: null, flags?: InjectFlags): T | null;
|
||||||
overrideComponent(component: Type<any>, override: MetadataOverride<Component>): TestBedStatic;
|
overrideComponent(component: Type<any>, override: MetadataOverride<Component>): TestBedStatic;
|
||||||
overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): TestBedStatic;
|
overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): TestBedStatic;
|
||||||
overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBedStatic;
|
overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBedStatic;
|
||||||
overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): TestBedStatic;
|
overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): TestBedStatic;
|
||||||
|
overrideProvider(token: any, provider: {
|
||||||
|
useFactory: Function;
|
||||||
|
deps: any[];
|
||||||
|
}): TestBedStatic;
|
||||||
overrideProvider(token: any, provider: {
|
overrideProvider(token: any, provider: {
|
||||||
useValue: any;
|
useValue: any;
|
||||||
}): TestBedStatic;
|
}): TestBedStatic;
|
||||||
|
@ -112,10 +116,6 @@ export interface TestBedStatic {
|
||||||
useValue?: any;
|
useValue?: any;
|
||||||
deps?: any[];
|
deps?: any[];
|
||||||
}): TestBedStatic;
|
}): TestBedStatic;
|
||||||
overrideProvider(token: any, provider: {
|
|
||||||
useFactory: Function;
|
|
||||||
deps: any[];
|
|
||||||
}): TestBedStatic;
|
|
||||||
overrideTemplate(component: Type<any>, template: string): TestBedStatic;
|
overrideTemplate(component: Type<any>, template: string): TestBedStatic;
|
||||||
overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBedStatic;
|
overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBedStatic;
|
||||||
resetTestEnvironment(): void;
|
resetTestEnvironment(): void;
|
||||||
|
|
|
@ -524,8 +524,8 @@ export interface ValidatorFn {
|
||||||
}
|
}
|
||||||
|
|
||||||
export declare class Validators {
|
export declare class Validators {
|
||||||
static compose(validators: (ValidatorFn | null | undefined)[]): ValidatorFn | null;
|
|
||||||
static compose(validators: null): null;
|
static compose(validators: null): null;
|
||||||
|
static compose(validators: (ValidatorFn | null | undefined)[]): ValidatorFn | null;
|
||||||
static composeAsync(validators: (AsyncValidatorFn | null)[]): AsyncValidatorFn | null;
|
static composeAsync(validators: (AsyncValidatorFn | null)[]): AsyncValidatorFn | null;
|
||||||
static email(control: AbstractControl): ValidationErrors | null;
|
static email(control: AbstractControl): ValidationErrors | null;
|
||||||
static max(max: number): ValidatorFn;
|
static max(max: number): ValidatorFn;
|
||||||
|
|
|
@ -142,8 +142,8 @@ export declare class RequestOptions {
|
||||||
method: RequestMethod | string | null;
|
method: RequestMethod | string | null;
|
||||||
params: URLSearchParams;
|
params: URLSearchParams;
|
||||||
responseType: ResponseContentType | null;
|
responseType: ResponseContentType | null;
|
||||||
/** @deprecated */ set search(params: URLSearchParams);
|
|
||||||
/** @deprecated */ get search(): URLSearchParams;
|
/** @deprecated */ get search(): URLSearchParams;
|
||||||
|
/** @deprecated */ set search(params: URLSearchParams);
|
||||||
url: string | null;
|
url: string | null;
|
||||||
withCredentials: boolean | null;
|
withCredentials: boolean | null;
|
||||||
constructor(opts?: RequestOptionsArgs);
|
constructor(opts?: RequestOptionsArgs);
|
||||||
|
|
Loading…
Reference in New Issue