Documentation / @sw-file-lib/xml / xml-schema / union
Function: union()
ts
function union<T>(schemas: T): UnionSchema<T>;Defined in: packages/xml/src/xml-schema/classes/union.ts:138
Creates a schema that accepts any value accepted by one of the given schemas.
Type Parameters
| Type Parameter |
|---|
T extends SchemaTuple |
Parameters
| Parameter | Type |
|---|---|
schemas | T |
Returns
UnionSchema<T>