Documentation / @sw-file-lib/xml / xml-schema / SchemaSerializeResult
Type Alias: SchemaSerializeResult
ts
type SchemaSerializeResult =
| {
kind: "attribute";
value: string;
}
| {
kind: "omitted";
}
| ElementSchemaSerializeResult;Defined in: packages/xml/src/xml-schema/types.ts:139
The result of serializing one schema field.
Primitive schemas produce attributes, optional schemas may omit undefined fields, and element schemas produce child elements.