diff --git a/packages/core/src/render3/deps_tracker/deps_tracker.ts b/packages/core/src/render3/deps_tracker/deps_tracker.ts index 13e0dcc0108..756836b4b7c 100644 --- a/packages/core/src/render3/deps_tracker/deps_tracker.ts +++ b/packages/core/src/render3/deps_tracker/deps_tracker.ts @@ -11,7 +11,7 @@ import {RuntimeError, RuntimeErrorCode} from '../../errors'; import {Type} from '../../interface/type'; import {NgModuleType} from '../../metadata/ng_module_def'; import {getComponentDef, getNgModuleDef, isStandalone} from '../definition'; -import {ComponentType, NgModuleScopeInfoFromDecorator} from '../interfaces/definition'; +import {ComponentType, NgModuleScopeInfoFromDecorator, RawScopeInfoFromDecorator} from '../interfaces/definition'; import {isComponent, isDirective, isNgModule, isPipe, verifyStandaloneImport} from '../jit/util'; import {maybeUnwrapFn} from '../util/misc_utils'; @@ -60,7 +60,7 @@ class DepsTracker implements DepsTrackerApi { } /** @override */ - getComponentDependencies(type: ComponentType, rawImports?: (Type|(() => Type))[]): + getComponentDependencies(type: ComponentType, rawImports?: RawScopeInfoFromDecorator[]): ComponentDependencies { this.resolveNgModulesDecls(); @@ -213,9 +213,8 @@ class DepsTracker implements DepsTrackerApi { } /** @override */ - getStandaloneComponentScope( - type: ComponentType, - rawImports?: (Type|(() => Type))[]): StandaloneComponentScope { + getStandaloneComponentScope(type: ComponentType, rawImports?: RawScopeInfoFromDecorator[]): + StandaloneComponentScope { if (this.standaloneComponentsScopeCache.has(type)) { return this.standaloneComponentsScopeCache.get(type)!; } @@ -228,7 +227,7 @@ class DepsTracker implements DepsTrackerApi { private computeStandaloneComponentScope( type: ComponentType, - rawImports?: (Type|(() => Type))[]): StandaloneComponentScope { + rawImports?: RawScopeInfoFromDecorator[]): StandaloneComponentScope { const ans: StandaloneComponentScope = { compilation: { // Standalone components are always able to self-reference.