UNPKG

@formatjs/intl-datetimeformat

Version:
8 lines (7 loc) 526 B
/** * Number.prototype.toLocaleString ponyfill * https://tc39.es/ecma402/#sup-number.prototype.tolocalestring */ export declare function toLocaleString(x?: Date | number, locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; export declare function toLocaleDateString(x?: Date | number, locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; export declare function toLocaleTimeString(x?: Date | number, locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;