UNPKG

@yyasinaslan/easyform

Version:
10 lines (9 loc) 505 B
import { InjectionToken } from "@angular/core"; import { ComponentType } from "../interfaces/component-type"; import { EasyFormControl } from "../easy-form-control"; export type EasyFormControlComponent = ComponentType<EasyFormControl>; export type LazyLoadingComponent = () => Promise<any | EasyFormControlComponent>; export interface EasyFormConfig { controls: Record<string, EasyFormControlComponent | LazyLoadingComponent>; } export declare const EASY_FORM_CONFIG: InjectionToken<EasyFormConfig>;