@orchestrator/core
Version:
> Core package of Orchestrator library.
19 lines (18 loc) • 998 B
TypeScript
import { ComponentFactoryResolver, Injector, Type } from '@angular/core';
import { GetOrchestratorDynamicComponentConfig, OrchestratorDynamicComponentType } from '../types';
import * as i0 from "@angular/core";
export declare class ComponentLocatorService {
private injector;
private cfr;
private componentRegistry;
private componentArray;
private componentArrayMap;
private componentMaps;
private componentMap;
constructor(injector: Injector, cfr: ComponentFactoryResolver);
resolve<T, C = GetOrchestratorDynamicComponentConfig<T>>(component: string | OrchestratorDynamicComponentType<C>): OrchestratorDynamicComponentType<C> | undefined;
getDefaultConfig<C>(component: OrchestratorDynamicComponentType<C>): C | null;
getConfigType<C>(component: OrchestratorDynamicComponentType<C>): Type<C> | null;
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentLocatorService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ComponentLocatorService>;
}