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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

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