Skip to content

Documentation / @sw-file-lib/xml / xml-schema / object

Function: object() ​

ts
function object<S>(shape: S): ObjectSchema<S, InferShape<S>>;

Defined in: packages/xml/src/xml-schema/classes/object.ts:239

Creates a schema that parses XML record elements as JavaScript objects.

Type Parameters ​

Type Parameter
S extends Shape

Parameters ​

ParameterType
shapeS

Returns ​

ObjectSchema<S, InferShape<S>>