Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion goldens/cdk/overlay/index.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class CloseScrollStrategy implements ScrollStrategy {
enable(): void;
}

// @public
// @public @deprecated
export interface ComponentType<T> {
// (undocumented)
new (...args: any[]): T;
Expand Down
2 changes: 1 addition & 1 deletion goldens/cdk/portal/index.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class ComponentPortal<T> extends Portal<ComponentRef<T>> {
viewContainerRef?: ViewContainerRef | null;
}

// @public
// @public @deprecated
export interface ComponentType<T> {
// (undocumented)
new (...args: any[]): T;
Expand Down
20 changes: 13 additions & 7 deletions src/cdk/portal/portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,30 @@
*/

import {
TemplateRef,
ViewContainerRef,
ElementRef,
Binding,
ComponentRef,
ElementRef,
EmbeddedViewRef,
Injector,
Binding,
TemplateRef,
ViewContainerRef,
} from '@angular/core';
import {
throwNullPortalOutletError,
throwPortalAlreadyAttachedError,
throwNoPortalAttachedError,
throwNullPortalError,
throwNullPortalOutletError,
throwPortalAlreadyAttachedError,
throwPortalOutletAlreadyDisposedError,
throwUnknownPortalTypeError,
} from './portal-errors';

/** Interface that can be used to generically type a class. */
/**
* Interface that can be used to generically type a class.
*
* @deprecated Use `Type<T>` from `@angular/core` instead.
*
* @breaking-change 22.0.0
*/
export interface ComponentType<T> {
new (...args: any[]): T;
}
Expand Down
Loading