fix(core): temporarily remove @deprecated jsdoc tag for a TextBedStatic.get overload (#30714)
Followup to #30514 which did the same for `TestBed`, but `TestBedStatic` was necessary too. PR Close #30714
This commit is contained in:
parent
bb4e230eae
commit
6bc9c78d76
@ -115,8 +115,13 @@ export interface TestBedStatic {
|
|||||||
}): TestBedStatic;
|
}): TestBedStatic;
|
||||||
|
|
||||||
get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
||||||
|
// TODO: switch back to official deprecation marker once TSLint issue is resolved
|
||||||
|
// https://github.com/palantir/tslint/issues/4522
|
||||||
/**
|
/**
|
||||||
* @deprecated from v8.0.0 use Type<T> or InjectionToken<T>
|
* deprecated from v8.0.0 use Type<T> or InjectionToken<T>
|
||||||
|
* This does not use the deprecated jsdoc tag on purpose
|
||||||
|
* because it renders all overloads as deprecated in TSLint
|
||||||
|
* due to https://github.com/palantir/tslint/issues/4522.
|
||||||
*/
|
*/
|
||||||
get(token: any, notFoundValue?: any): any;
|
get(token: any, notFoundValue?: any): any;
|
||||||
|
|
||||||
|
2
tools/public_api_guard/core/testing.d.ts
vendored
2
tools/public_api_guard/core/testing.d.ts
vendored
@ -94,7 +94,7 @@ export interface TestBedStatic {
|
|||||||
configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic;
|
||||||
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
createComponent<T>(component: Type<T>): ComponentFixture<T>;
|
||||||
get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): any;
|
||||||
/** @deprecated */ get(token: any, notFoundValue?: any): any;
|
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;
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user