Documentation

Schema.buildproperty

Schema​.build​.union

Creates a validation builder that accepts any of the provided types.

union: <T extends (Builder | Schema<any>)[]>(
...types: T
) => Builder<Infer<T[number]>>;

Notes

Parameters

Related