Documentation / @facturometro/serializer / SerializeOptions
Interface: SerializeOptions ​
Defined in: serialize.ts:35
How the XML is laid out. Both options only affect whitespace and the prolog; the elements, their order and their content are always the same.
Example ​
ts
serialize(invoice, { declaration: false, indent: false }); // one line, no prolog
serialize(invoice, { indent: '\t' }); // tab-indentedProperties ​
declaration? ​
readonlyoptionaldeclaration?:boolean
Defined in: serialize.ts:41
Whether to start the output with <?xml version="1.0" encoding="UTF-8"?>.
Default ​
ts
trueindent? ​
readonlyoptionalindent?:string|number|false
Defined in: serialize.ts:48
One level of indentation: a number of spaces, the exact string to use, or false for no line breaks and no indentation at all.
Default ​
ts
2