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
| Parameter | Type |
|---|---|
shape | S |
Returns
ObjectSchema<S, InferShape<S>>