src/lib/component-dialog/types.ts
Properties |
| component |
component:
|
Type : ComponentType<any>
|
| title |
title:
|
Type : string
|
| Optional |
import { ComponentType } from '@angular/cdk/overlay';
import { MatDialogConfig } from '@angular/material/dialog';
export interface ComponentDialogData {
component: ComponentType<any>,
title?: string,
}
export type ComponentDialogConfig = MatDialogConfig<Omit<ComponentDialogData, 'component'>>;