API reference / @localizer/format / DefaultFormattersOptions
Type Alias: DefaultFormattersOptions
DefaultFormattersOptions =
object
Defined in: fn/autoFormat.ts:36
Options for the autoFormat
function, defining how different types of values should be formatted.
Properties
Property | Modifier | Type | Default value | Description |
---|---|---|---|---|
array | public | ValueFormatter <Localizable []> | list | Formatter for arrays. |
boolean | public | ValueFormatter <boolean > | stringify | Formatter for booleans. |
date | public | ValueFormatter <Date > | date | Formatter for dates. |
default | public | ValueFormatter <unknown > | stringify | Formatter for all other types. |
number | public | ValueFormatter <number | bigint > | decimal | Formatter for numbers and bigints. |
string | public | ValueFormatter <string > | stringify | Formatter for strings. |