UNPKG

@backland/schema

Version:

TypeScript schema declaration and validation library with static type inference

12 lines (11 loc) 371 B
import { FieldType, FieldTypeParser } from './FieldType'; type EmailDef = { errorMessage?: string; regex?: [string] | [string, string]; }; export declare class EmailField extends FieldType<string, 'email', EmailDef | undefined> { parse: FieldTypeParser<string>; constructor(def?: EmailDef); static create: (def?: EmailDef) => EmailField; } export {};