phone-mask-uz
Version:
A flexible React component for formatting and validating Uzbekistan phone numbers
13 lines (12 loc) • 439 B
TypeScript
/**
* O'zbekiston telefon raqamini formatlaydi
* @param value - Kiruvchi telefon raqami
* @returns Formatlangan telefon raqami
*/
export declare const normalizePhoneNumber: (value: string) => string;
/**
* Telefon raqami to'g'ri formatda ekanligini tekshiradi
* @param phone - Tekshiriladigan telefon raqami
* @returns true agar raqam to'g'ri formatda bo'lsa
*/
export declare const isValidPhoneNumber: (phone: string) => boolean;