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