UNPKG

@react-form-fields/core

Version:

Material UI Form Fields

22 lines (21 loc) 653 B
import * as React from 'react'; import { ErrorMessages } from 'validatorjs'; import ConfigBuilderClass from './builder'; export declare const ConfigBuilder: typeof ConfigBuilderClass; export interface IMask extends IMaskFunction { name: string; } export interface IMaskFunction { apply(value: string | number): string; clean(value: string): string | number; } export interface IConfig { validationDelay?: number; masks?: IMask[]; validation?: { lang: string; customMessages?: ErrorMessages; }; } declare const FieldValidationConfigContext: React.Context<IConfig>; export default FieldValidationConfigContext;