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 89
Last Updated: 30 November, 2023