UNPKG

ngx-reactive-forms-utils

Version:

Reactive forms in Angular are a great way to manage forms. This library provides utilities that make it easier to work with reactive forms.

11 lines (10 loc) 518 B
import { InjectionToken } from '@angular/core'; type CustomErrorMesageFunction = (...args: any[]) => string; export interface CustomErrorMessages { [key: string]: CustomErrorMesageFunction; } export declare function addCustomErrorMessage(name: string, fn: CustomErrorMesageFunction): void; export declare const defaultCustomErrorMessages: CustomErrorMessages; export declare const FORM_ERRORS: InjectionToken<CustomErrorMessages>; export declare const FORM_ERRORS_DEBOUNCE_TIME: InjectionToken<number>; export {};