Property that defines whether this decorator is part of a context group or multiple groups.
To be able to use JsonFormat on class properties of type Date
with JsonFormatShape.STRING, a date library needs to be set.
Date libraries supported: https://github.com/moment/moment, https://github.com/iamkun/dayjs/.
Property that defines whether this decorator is active or not.
Locale to be used to format a Date during serialization.
Pattern to be used to format a Date during serialization.
Radix to be used to format an integer Number during serialization and using parseInt().
Value that indicates that (JSON) String type should be used.
Timezone to be used to format a Date during serialization.
An integer specifying the number of digits after the decimal point
to be used to format an integer Number during serialization and using toExponential().
The number of digits to appear after the decimal point to be used to format a Number
during serialization and using toFixed().
An integer specifying the number of significant digits to be used to format a Number
during serialization and using toPrecision().
Generated using TypeDoc
Decorator specific options for JsonFormat with JsonFormatBaseOptions.shape value JsonFormatShape.STRING.
IMPORTANT NOTE: When formatting a
Date, a date library needs to be set using the dateLibrary option. Date libraries supported: https://github.com/moment/moment, https://github.com/iamkun/dayjs/.