diff --git a/packages/core/primitives/di/src/injection_token.ts b/packages/core/primitives/di/src/injection_token.ts index 4614855e7c3..6a0b91aec09 100644 --- a/packages/core/primitives/di/src/injection_token.ts +++ b/packages/core/primitives/di/src/injection_token.ts @@ -47,12 +47,12 @@ export interface ɵɵInjectableDeclaration { /** * Factory method to execute to create an instance of the injectable. */ - factory?: (t?: Type) => T; + factory?: (t?: Type) => any; /** * In a case of no explicit injector, a location where the instance of the injectable is stored. */ - value?: T; + value?: any; } /** diff --git a/packages/core/src/di/interface/defs.ts b/packages/core/src/di/interface/defs.ts index aef641eaa72..8d1054dfd64 100644 --- a/packages/core/src/di/interface/defs.ts +++ b/packages/core/src/di/interface/defs.ts @@ -55,12 +55,12 @@ export interface ɵɵInjectableDeclaration { /** * Factory method to execute to create an instance of the injectable. */ - factory: (t?: Type) => T; + factory: (t?: Type) => any; /** * In a case of no explicit injector, a location where the instance of the injectable is stored. */ - value: T | undefined; + value: any; } /**