Aller au contenu principal

UnionSchema<Schemas, T>

UnionSchema<Schemas, T> = Schema<T> & object

Schema for union types.

Type Declaration

type: "union"

schemas: Schemas


Type Parameters

Schemas: Schemas extends readonly GenericSchema[]

The union member schemas

T: T = Infer<Schemas[number]>

The inferred union type


Since

2.0.0