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