UNPKG

rx-form-mapper

Version:

Proper decorator-based transformation / serialization / deserialization of plain javascript classes to angular reactive forms

9 lines (8 loc) 370 B
import 'reflect-metadata'; import { RxAsyncValidator, RxValidator, UpdateOn } from '../types'; export interface FormControlOpts { validators?: RxValidator | RxValidator[]; asyncValidators?: RxAsyncValidator | RxAsyncValidator[]; updateOn?: UpdateOn; } export declare function FormControl(opts?: FormControlOpts): (target: any, propertyName: string) => void;