diff --git a/packages/core/testing/src/test_bed_common.ts b/packages/core/testing/src/test_bed_common.ts index 9977194ef1..981a5421b3 100644 --- a/packages/core/testing/src/test_bed_common.ts +++ b/packages/core/testing/src/test_bed_common.ts @@ -115,8 +115,13 @@ export interface TestBedStatic { }): TestBedStatic; get(token: Type|InjectionToken, 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 or InjectionToken + * deprecated from v8.0.0 use Type or InjectionToken + * 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; diff --git a/tools/public_api_guard/core/testing.d.ts b/tools/public_api_guard/core/testing.d.ts index 11e0cb85b5..49da6241dc 100644 --- a/tools/public_api_guard/core/testing.d.ts +++ b/tools/public_api_guard/core/testing.d.ts @@ -94,7 +94,7 @@ export interface TestBedStatic { configureTestingModule(moduleDef: TestModuleMetadata): TestBedStatic; createComponent(component: Type): ComponentFixture; get(token: Type | InjectionToken, notFoundValue?: T, flags?: InjectFlags): any; - /** @deprecated */ get(token: any, notFoundValue?: any): any; + get(token: any, notFoundValue?: any): any; initTestEnvironment(ngModule: Type | Type[], platform: PlatformRef, aotSummaries?: () => any[]): TestBed; overrideComponent(component: Type, override: MetadataOverride): TestBedStatic; overrideDirective(directive: Type, override: MetadataOverride): TestBedStatic;