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: 20 June, 2023