@formatjs/intl-datetimeformat
Version:
Intl.DateTimeFormat polyfill
8 lines (7 loc) • 523 B
TypeScript
/**
* 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;