UNPKG

@bshg/validation

Version:

Validation Library for TypeScript projects

19 lines (18 loc) 422 B
export declare const regex: { EMAIL: RegExp; PHONE: RegExp; NUMERIC: RegExp; ALPHA: RegExp; ALPHANUMERIC: RegExp; URL: RegExp; DATE: RegExp; TIME: RegExp; HEX_COLOR: RegExp; CREDIT_CARD: RegExp; HTML_TAG: RegExp; BASE64: RegExp; }; export type RegexType = { [k in keyof typeof regex]: RegExp; }; export declare const updateRegex: (newRegex: Partial<RegexType>) => void;