UNPKG

@orchestrator/core

Version:
9 lines (8 loc) 500 B
import { InjectionToken, Type } from '@angular/core'; import { OrchestratorDynamicComponentType } from './types'; export declare type DefaultDynamicComponent = OrchestratorDynamicComponentType; export interface ComponentMap<T extends Type<any> = DefaultDynamicComponent> { [k: string]: T; } export declare type ComponentRegistry<T extends Type<any> = DefaultDynamicComponent> = T[] | ComponentMap<T>; export declare const COMPONENTS: InjectionToken<ComponentRegistry<DefaultDynamicComponent>[]>;