UNPKG

rx-form-mapper

Version:

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

6 lines (5 loc) 383 B
import { Type } from '@angular/core'; import { Validator, ValidatorFn, AsyncValidator, AsyncValidatorFn } from '@angular/forms'; export declare type RxValidator = Validator | ValidatorFn | Type<Validator>; export declare type RxAsyncValidator = AsyncValidator | AsyncValidatorFn | Type<AsyncValidator>; export declare type UpdateOn = 'change' | 'blur' | 'submit' | null | undefined;