Skip to content

XML_BUILDER_OPTIONS

const XML_BUILDER_OPTIONS: object

Defined in: schemaGenerateUtils.ts:54

Standardized XML builder options to keep generated metadata formatted like Salesforce CLI output. Deliberately untyped against fast-xml-builder’s own option type: its package.json “exports” serves different (and inconsistent) .d.ts files for its “import” vs “require” conditions, and the “require” one doesn’t declare a named XmlBuilderOptions export at all. The new XMLBuilder(XML_BUILDER_OPTIONS) call site (which imports the constructor itself, not a separate named type) still validates this object’s shape.

format: boolean = true

ignoreAttributes: boolean = false

indentBy: string = ' '

suppressEmptyNode: boolean = true