Skeleton interface
An object representation of a parsed string skeleton, with token values grouped by type.
Signature:
export interface Skeleton
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
affix? | { pos: [string, string]; neg?: [string, string]; } | (Optional) | |
decimal? | ‘decimal-auto’ | ‘decimal-always’ | (Optional) | |
group? | ‘group-off’ | ‘group-min2’ | ‘group-auto’ | ‘group-on-aligned’ | ‘group-thousands’ | (Optional) | |
integerWidth? | { min: number; max?: number; source?: string; } | (Optional) | |
notation? | { style: ‘compact-short’ | ‘compact-long’ | ‘notation-simple’; } | { style: ‘scientific’ | ‘engineering’; expDigits?: number; expSign?: Skeleton[‘sign’]; source?: string; } | (Optional) | |
numberingSystem? | ‘arab’ | ‘arabext’ | ‘bali’ | ‘beng’ | ‘deva’ | ‘fullwide’ | ‘gujr’ | ‘guru’ | ‘hanidec’ | ‘khmr’ | ‘knda’ | ‘laoo’ | ‘latn’ | ‘limb’ | ‘mlym’ | ‘mong’ | ‘mymr’ | ‘orya’ | ‘tamldec’ | ‘telu’ | ‘thai’ | ‘tibt’ | (Optional) | |
precision? | { style: ‘precision-integer’ | ‘precision-unlimited’ | ‘precision-currency-cash’; } | { style: ‘precision-currency-standard’; trailingZero?: ‘auto’ | ‘stripIfInteger’ | undefined; } | { style: ‘precision-increment’; increment: number; } | { style: ‘precision-fraction’; minFraction?: number; maxFraction?: number; minSignificant?: number; maxSignificant?: number; source?: string; } | (Optional) | |
roundingMode? | ‘rounding-mode-ceiling’ | ‘rounding-mode-floor’ | ‘rounding-mode-down’ | ‘rounding-mode-up’ | ‘rounding-mode-half-even’ | ‘rounding-mode-half-odd’ | ‘rounding-mode-half-ceiling’ | ‘rounding-mode-half-floor’ | ‘rounding-mode-half-down’ | ‘rounding-mode-half-up’ | ‘rounding-mode-unnecessary’ | (Optional) | |
scale? | number | (Optional) | |
sign? | ‘sign-auto’ | ‘sign-always’ | ‘sign-never’ | ‘sign-accounting’ | ‘sign-accounting-always’ | ‘sign-except-zero’ | ‘sign-accounting-except-zero’ | (Optional) | |
unit? | { style: ‘percent’ | ‘permille’ | ‘base-unit’; } | { style: ‘currency’; currency: string; } | { style: ‘measure-unit’; unit: Unit; } | (Optional) | |
unitPer? | Unit | (Optional) | |
unitWidth? | ‘unit-width-narrow’ | ‘unit-width-short’ | ‘unit-width-full-name’ | ‘unit-width-iso-code’ | ‘unit-width-hidden’ | (Optional) |