added missing formatOutOfCountryCallingNumber function to definitions of google-libphonenumber (#25513)

* updated google-libphonenumber utils function with formatOutOfCountryCallingNumber that was missing

* updated spaces
This commit is contained in:
Roman Jurkov
2018-05-08 13:59:19 -04:00
committed by Sheetal Nandi
parent 44e58864bd
commit bc47bffd04

View File

@@ -1,6 +1,7 @@
// Type definitions for libphonenumber v7.4.3
// Project: https://github.com/googlei18n/libphonenumber, https://github.com/seegno/google-libphonenumber
// Definitions by: Leon Yu <https://github.com/leonyu>
// Roman Jurkov <https://github.com/winfinit>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace libphonenumber {
@@ -112,6 +113,7 @@ declare namespace libphonenumber {
export class PhoneNumberUtil {
static getInstance(): PhoneNumberUtil
format(phoneNumber: PhoneNumber, format: PhoneNumberFormat): string;
formatOutOfCountryCallingNumber(phoneNumber: PhoneNumber, regionDialingFrom?: string): string;
getNddPrefixForRegion(regionCode?: string, stripNonDigits?: boolean): string | undefined;
getNumberType(phoneNumber: PhoneNumber): PhoneNumberType;
getCountryCodeForRegion(supportedRegion:string):string;