@formatjs/intl-datetimeformat
Version:
Intl.DateTimeFormat polyfill
12 lines (11 loc) • 466 B
TypeScript
import { type IntlDateTimeFormatPart } from "@formatjs/ecma402-abstract";
import type Decimal from "decimal.js";
import { PartitionDateTimePattern } from "./PartitionDateTimePattern.js";
/**
* https://tc39.es/ecma402/#sec-formatdatetimetoparts
*
* @param dtf
* @param x
* @param implDetails
*/
export declare function FormatDateTimeToParts(dtf: Intl.DateTimeFormat, x: Decimal, implDetails: Parameters<typeof PartitionDateTimePattern>[2]): IntlDateTimeFormatPart[];