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 {
|
||||
constructor(_ref: ChangeDetectorRef);
|
||||
ngOnDestroy(): void;
|
||||
transform<T>(obj: null): null;
|
||||
transform<T>(obj: undefined): undefined;
|
||||
transform<T>(obj: Observable<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 {
|
||||
|
@ -214,8 +214,8 @@ export declare class NgComponentOutlet implements OnChanges, OnDestroy {
|
|||
export declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {
|
||||
set ngForOf(ngForOf: (U & NgIterable<T>) | undefined | null);
|
||||
set ngForTemplate(value: TemplateRef<NgForOfContext<T, U>>);
|
||||
get ngForTrackBy(): TrackByFunction<T>;
|
||||
set ngForTrackBy(fn: TrackByFunction<T>);
|
||||
get ngForTrackBy(): TrackByFunction<T>;
|
||||
constructor(_viewContainer: ViewContainerRef, _template: TemplateRef<NgForOfContext<T, U>>, _differs: IterableDiffers);
|
||||
ngDoCheck(): void;
|
||||
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;
|
||||
$$parseLinkUrl(url: string, relHref?: string | null): boolean;
|
||||
absUrl(): string;
|
||||
hash(hash: string | number | null): this;
|
||||
hash(): string;
|
||||
hash(hash: string | number | null): this;
|
||||
host(): string;
|
||||
onChange(fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void, err?: (e: Error) => void): void;
|
||||
path(): string;
|
||||
|
@ -21,8 +21,8 @@ export declare class $locationShim {
|
|||
search(search: string | number | {
|
||||
[key: string]: unknown;
|
||||
}, paramValue: null | undefined | string | number | boolean | string[]): this;
|
||||
state(state: unknown): this;
|
||||
state(): unknown;
|
||||
state(state: unknown): this;
|
||||
url(): string;
|
||||
url(url: string): this;
|
||||
}
|
||||
|
|
|
@ -58,8 +58,8 @@ export interface TestBed {
|
|||
configureTestingModule(moduleDef: TestModuleMetadata): void;
|
||||
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
||||
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(token: any, notFoundValue?: any): any;
|
||||
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: null, flags?: InjectFlags): T | null;
|
||||
|
@ -95,15 +95,19 @@ export interface TestBedStatic {
|
|||
}): TestBedStatic;
|
||||
configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
||||
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(token: any, notFoundValue?: any): any;
|
||||
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: null, flags?: InjectFlags): T | null;
|
||||
overrideComponent(component: Type<any>, override: MetadataOverride<Component>): TestBedStatic;
|
||||
overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): TestBedStatic;
|
||||
overrideModule(ngModule: Type<any>, override: MetadataOverride<NgModule>): TestBedStatic;
|
||||
overridePipe(pipe: Type<any>, override: MetadataOverride<Pipe>): TestBedStatic;
|
||||
overrideProvider(token: any, provider: {
|
||||
useFactory: Function;
|
||||
deps: any[];
|
||||
}): TestBedStatic;
|
||||
overrideProvider(token: any, provider: {
|
||||
useValue: any;
|
||||
}): TestBedStatic;
|
||||
|
@ -112,10 +116,6 @@ export interface TestBedStatic {
|
|||
useValue?: any;
|
||||
deps?: any[];
|
||||
}): TestBedStatic;
|
||||
overrideProvider(token: any, provider: {
|
||||
useFactory: Function;
|
||||
deps: any[];
|
||||
}): TestBedStatic;
|
||||
overrideTemplate(component: Type<any>, template: string): TestBedStatic;
|
||||
overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBedStatic;
|
||||
resetTestEnvironment(): void;
|
||||
|
|
|
@ -524,8 +524,8 @@ export interface ValidatorFn {
|
|||
}
|
||||
|
||||
export declare class Validators {
|
||||
static compose(validators: (ValidatorFn | null | undefined)[]): ValidatorFn | null;
|
||||
static compose(validators: null): null;
|
||||
static compose(validators: (ValidatorFn | null | undefined)[]): ValidatorFn | null;
|
||||
static composeAsync(validators: (AsyncValidatorFn | null)[]): AsyncValidatorFn | null;
|
||||
static email(control: AbstractControl): ValidationErrors | null;
|
||||
static max(max: number): ValidatorFn;
|
||||
|
|
|
@ -142,8 +142,8 @@ export declare class RequestOptions {
|
|||
method: RequestMethod | string | null;
|
||||
params: URLSearchParams;
|
||||
responseType: ResponseContentType | null;
|
||||
/** @deprecated */ set search(params: URLSearchParams);
|
||||
/** @deprecated */ get search(): URLSearchParams;
|
||||
/** @deprecated */ set search(params: URLSearchParams);
|
||||
url: string | null;
|
||||
withCredentials: boolean | null;
|
||||
constructor(opts?: RequestOptionsArgs);
|
||||
|
|
Loading…
Reference in New Issue