xml-class-transformer / XmlChardataOptions
• type: () => XmlPrimitiveType
▸ (): XmlPrimitiveType
An XML chardata an only be of primitive types. Specify the primitive type for parsing and serializing the chardata.
Example
{ type: () => String }
{ type: () => Number }
{ type: () => BigInt }
{ type: () => Boolean }