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 119
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.