INumberFormatScopedSlotBindings

interface
NumberFormat

Bindings exposed by the scoped `#default` slot. Consumers use these to highlight specific parts of the formatted output (currency symbol, decimal separator, …) without re-running `Intl.NumberFormat` themselves.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

formatted
required
string
The locale-formatted string, ready to render.
parts
required
Intl.NumberFormatPart[]
The structured parts (`Intl.NumberFormatPart[]`).
value
required
number
The numeric value after string-to-number coercion.