UNPKG

@modular-forms/react

Version:

The modular and type-safe form library for React

12 lines (11 loc) 302 B
import type { MaybeValue } from '../types'; type Value = MaybeValue<string>; /** * Creates a validation functions that validates a email. * * @param error The error message. * * @returns A validation function. */ export declare function email(error: string): (value: Value) => string; export {};