mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 00:18:20 +08:00
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:
committed by
Masahiro Wakame
parent
d2b5537cb7
commit
ae78ca55bc
3
phone/index.d.ts
vendored
3
phone/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user