UNPKG

@formatjs/ecma402-abstract

Version:

A collection of implementation for ECMAScript abstract operations

9 lines (8 loc) 453 B
import { type NumberFormatInternal, type NumberFormatPart } from "../types/number.js"; /** * https://tc39.es/ecma402/#sec-collapsenumberrange * LDML: https://unicode-org.github.io/cldr/ldml/tr35-numbers.html#collapsing-number-ranges */ export declare function CollapseNumberRange(numberFormat: Intl.NumberFormat, result: NumberFormatPart[], { getInternalSlots }: { getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal; }): NumberFormatPart[];