Interface: IFormatter<T>
Charting Library.IFormatter
Definition of a formatter
Type parameters
| Name |
|---|
T |
Hierarchy
-
IFormatter
Methods
format
▸ format(value?, options?): string
Whatever the input type, formats the data following a certain logic and return that value as a string
Parameters
| Name | Type |
|---|---|
value? | T |
options? | FormatterFormatOptions |
Returns
string
parse
▸ parse(value, options?): ErrorFormatterParseResult | SuccessFormatterParseResult<T>
Check if the input value satisfies the logic and return either an error or the result of the parsing
Parameters
| Name | Type |
|---|---|
value | string |
options? | FormatterParseOptions |