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