parseFormatTraits Method
This method parses input string that is typically extracted for persisted JSON data and validates that the string is a valid FormatType. Throws exception if not valid.
parseFormatTraits(formatTraitsFromJson: string | string[]): void
| Parameter | Type | Description |
|---|---|---|
| formatTraitsFromJson | string | string[] |
Returns - void
Defined in
- quantity/src/Formatter/Format.ts Line 130
Last Updated: 28 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.