Skip to main content

IntersectionSchema<Schemas, T>

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

Schema for intersection types.

Type Declaration​

type: "intersection"​

schemas: Schemas​


Type Parameters​

Schemas: Schemas extends readonly GenericSchema[]​

The intersection member schemas

T: T = UnionToIntersection<Infer<Schemas[number]>>​

The inferred intersection type


Since​

2.0.0