mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Add typing to StringBuffer
This commit is contained in:
+7
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user