@types/react-phone-number-input
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -7,2 +7,3 @@ // Type definitions for react-phone-number-input 3.0 | ||
// James Lismore <https://github.com/jlismore> | ||
// Dragoș Străinu <https://github.com/strdr4605> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -36,3 +37,17 @@ // Minimum TypeScript Version: 3.5 | ||
export function parsePhoneNumber(input: string): PhoneNumber | undefined; | ||
/** | ||
* @see https://github.com/catamphetamine/libphonenumber-js#phonenumber | ||
*/ | ||
export interface PhoneNumber { | ||
number: string; | ||
countryCallingCode: string; | ||
nationalNumber: string; | ||
country?: string; | ||
ext?: string; | ||
carrierCode?: string; | ||
} | ||
/** | ||
* This is simply an alias for getCountryCallingCode() from libphonenumber-js | ||
@@ -39,0 +54,0 @@ * @example getCountryCallingCode('US') === '1' |
{ | ||
"name": "@types/react-phone-number-input", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "TypeScript definitions for react-phone-number-input", | ||
@@ -26,2 +26,7 @@ "license": "MIT", | ||
"githubUsername": "jlismore" | ||
}, | ||
{ | ||
"name": "Dragoș Străinu", | ||
"url": "https://github.com/strdr4605", | ||
"githubUsername": "strdr4605" | ||
} | ||
@@ -40,4 +45,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "346da8651e3a300ee3811b883c4d746e075f8d99754bb209f1565d2e96521df0", | ||
"typesPublisherContentHash": "31fb24bf9cc1dcad616a6c58599e9316aceb7c7922a853095db26c8b792d4023", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 12 Mar 2020 22:42:29 GMT | ||
* Last updated: Tue, 12 May 2020 06:44:30 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by [Peter Yang](https://github.com/PeterYangIO), [Adrien Etienne](https://github.com/AdrienEtienne), [Jonathan Fleckenstein](https://github.com/fleck), and [James Lismore](https://github.com/jlismore). | ||
These definitions were written by [Peter Yang](https://github.com/PeterYangIO), [Adrien Etienne](https://github.com/AdrienEtienne), [Jonathan Fleckenstein](https://github.com/fleck), [James Lismore](https://github.com/jlismore), and [Dragoș Străinu](https://github.com/strdr4605). |
Sorry, the diff of this file is not supported yet
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
12469
204