@types/phone
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -1,7 +0,1 @@ | ||
// Type definitions for phone 2.4 | ||
// Project: https://github.com/aftership/phone | ||
// Definitions by: Hagai Cohen <https://github.com/DxCx> | ||
// Tim Brown <https://github.com/brimtown> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/** | ||
@@ -8,0 +2,0 @@ * used to normalize mobile phone numbers into E.164 format |
{ | ||
"name": "@types/phone", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "TypeScript definitions for phone", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone", | ||
"license": "MIT", | ||
@@ -9,9 +10,9 @@ "contributors": [ | ||
"name": "Hagai Cohen", | ||
"url": "https://github.com/DxCx", | ||
"githubUsername": "DxCx" | ||
"githubUsername": "DxCx", | ||
"url": "https://github.com/DxCx" | ||
}, | ||
{ | ||
"name": "Tim Brown", | ||
"url": "https://github.com/brimtown", | ||
"githubUsername": "brimtown" | ||
"githubUsername": "brimtown", | ||
"url": "https://github.com/brimtown" | ||
} | ||
@@ -28,4 +29,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "c796c524334f3b4aebefb50f063a23586ed92fa7c295a80a8a978b90376ea75f", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "4217ad8f8eb55aa019c2614abe77fcab4dc867e874582ba51e59df26ee905c1b", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,34 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone/index.d.ts) | ||
````ts | ||
/** | ||
* used to normalize mobile phone numbers into E.164 format | ||
*/ | ||
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: Wed, 19 May 2021 02:31:48 GMT | ||
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT | ||
* Dependencies: none | ||
* Global values: `phone` | ||
# Credits | ||
These definitions were written by [Hagai Cohen](https://github.com/DxCx), and [Tim Brown](https://github.com/brimtown). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3675
0
42
17