UNPKG

@type-ddd/email

Version:

Library that provides TypeScript type definitions for handling Email in Domain-Driven Design contexts. It facilitates the validation and manipulation of emails.

19 lines (18 loc) 916 B
export declare const GetCharCode: (char: string) => number; export declare const IsSpecialChar: (char: string) => boolean; export declare const IsAlphabet: (char: string) => boolean; export declare const IsNumber: (char: string) => boolean; export declare const IsValidChar: (char: string) => boolean; export declare const HasValidLength: (email: string) => boolean; export declare const IsValidPart: (part: string) => boolean; export declare const IsValidOrganizationName: (name: string) => boolean; export declare const IsValidCountry: (country: string) => boolean; export declare const IsValidNick: (email: string) => boolean; export declare const IsValidDomain: (email: string) => boolean; /** * @description validate email * @param email string with @ symbol * @returns true if is a valid email and false if not */ export declare const IsValidEmail: (email: string) => boolean; export default IsValidEmail;