@formatjs/ecma402-abstract
Version:
A collection of implementation for ECMAScript abstract operations
9 lines (8 loc) • 427 B
TypeScript
import type { Decimal } from "@formatjs/bigdecimal";
import { type NumberFormatInternal, type NumberFormatPart } from "../types/number.js";
/**
* https://tc39.es/ecma402/#sec-partitionnumberrangepattern
*/
export declare function PartitionNumberRangePattern(numberFormat: Intl.NumberFormat, x: Decimal, y: Decimal, { getInternalSlots }: {
getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
}): NumberFormatPart[];