UNPKG

prettyutils

Version:

Utility functions to parse, validate and generate data

8 lines (7 loc) 461 B
export default class PhoneUtil { clean: (phone: string | undefined | null) => string; format: (phone: string | undefined | null) => string; addPrefix: (phone: string | undefined | null, prefix?: string, large?: number) => string; validate: (phone: string | undefined | null, prefix?: string, large?: number) => boolean; validateFormat: (phone: string | undefined | null, countryCode?: string, prefix?: string, length?: number) => boolean; }