Add typing to StringBuffer

This commit is contained in:
Shini Ko
2018-06-05 15:43:34 -04:00
parent 6b431cf55b
commit 851efd77ea
+7 -1
View File
@@ -110,9 +110,15 @@ declare namespace libphonenumber {
}
}
class StringBuffer {
constructor(opt_a1?: any, ...var_args: any[]);
append(a1: any, opt_a2?: any, ...var_args: any[]): StringBuffer;
toString(): string;
}
export class PhoneNumberUtil {
static getInstance(): PhoneNumberUtil
extractCountryCode(fullNumber: any, nationalNumber: any): number;
extractCountryCode(fullNumber: StringBuffer, nationalNumber: StringBuffer): number;
format(phoneNumber: PhoneNumber, format: PhoneNumberFormat): string;
formatOutOfCountryCallingNumber(phoneNumber: PhoneNumber, regionDialingFrom?: string): string;
getNddPrefixForRegion(regionCode?: string, stripNonDigits?: boolean): string | undefined;