Skip to content

Commit 7a4b225

Browse files
JeanMechethePunderWoman
authored andcommitted
refactor(common): improve typing of ngComponentOutletContent (#63674)
Dropping `any` in favor of `Node` for better type safety and clarity. BREAKING CHANGE: `ngComponentOutletContent` is now of type `Node[][] | undefined` instead of `any[][] | undefined`. fixes #63538 PR Close #63674
1 parent 4924108 commit 7a4b225

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

goldens/public-api/common/index.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ export class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestroy
503503
get componentInstance(): T | null;
504504
ngComponentOutlet: Type<any> | null;
505505
// (undocumented)
506-
ngComponentOutletContent?: any[][];
506+
ngComponentOutletContent?: Node[][];
507507
// (undocumented)
508508
ngComponentOutletEnvironmentInjector?: EnvironmentInjector;
509509
// (undocumented)

packages/common/src/directives/ng_component_outlet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestroy
108108
@Input() ngComponentOutletInputs?: Record<string, unknown>;
109109
@Input() ngComponentOutletInjector?: Injector;
110110
@Input() ngComponentOutletEnvironmentInjector?: EnvironmentInjector;
111-
@Input() ngComponentOutletContent?: any[][];
111+
@Input() ngComponentOutletContent?: Node[][];
112112

113113
@Input() ngComponentOutletNgModule?: Type<any>;
114114

0 commit comments

Comments
 (0)