use-phone-input
Version:
Simplify phone number handling in React applications with automatic formatting, validation, and country code selection for international numbers
9 lines (8 loc) • 431 B
TypeScript
import { PhoneNumber } from '../types';
/**
* Checks if the given international phone number is valid
*
* > **This method uses [dynamic import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) under the hood, use only if your builder supports it**
*/
declare const isPhoneNumberValidAsync: ({ iso2, nationalNumber, }: PhoneNumber) => Promise<boolean>;
export default isPhoneNumberValidAsync;