Installation
npm install --save @types/phone
Summary
This package contains type definitions for phone (https://github.com/aftership/phone).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone.
declare function phone(phoneNumber: string, countryCode?: string, allowLandLine?: boolean): string[];
declare namespace phone {
const iso3166_data: PhoneData[];
interface PhoneData {
alpha2: string;
alpha3: string;
country_code: string;
country_name: string;
mobile_begin_with: string[];
phone_number_lengths: number[];
}
}
export as namespace phone;
export = phone;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Hagai Cohen, and Tim Brown.