Small change to phone typings (#10748)

phone typings where exported as default,
it seems like it is not fully compitable.
changed to export =.
This commit is contained in:
Hagai Cohen
2016-08-24 19:15:48 +03:00
committed by Masahiro Wakame
parent d2b5537cb7
commit ae78ca55bc
2 changed files with 3 additions and 2 deletions

3
phone/index.d.ts vendored
View File

@@ -3,4 +3,5 @@
// Definitions by: Hagai Cohen <https://github.com/DxCx>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default function phone(phoneNumber: string, countryCode?: string): Array<string>;
declare function phone(phoneNumber: string, countryCode?: string): Array<string>;
export = phone;

View File

@@ -1,4 +1,4 @@
import phone from 'phone';
import phone = require('phone');
phone('+852 6569-8900'); // return ['+85265698900', 'HKG']
phone('(817) 569-8900'); // return ['+18175698900, 'USA']