UNPKG

valia

Version:

A runtime data validator in TypeScript with advanced type inference, built-in validation functions, and seamless integration for server and client environments.

21 lines (20 loc) 490 B
interface IsEmailParams { /** **Default:** `false` */ allowQuotedString?: boolean; /** **Default:** `false` */ allowAddressLiteral?: boolean; /** **Default:** `false` */ allowGeneralAddressLiteral?: boolean; } /** * **Standard :** RFC 5321 * * @see https://datatracker.ietf.org/doc/html/rfc5321#section-4.1.2 * * **Follows :** * `Mailbox` * * @version 1.1.0-beta */ export declare function isEmail(str: string, params?: IsEmailParams): boolean; export {};