$intersection
Callable
Type parameters
- Elements: (ObjectType<Record<string, Node>> | (Node & { intrinsic: ObjectType<Record<string, Node>> }))[]
Parameters
intersection: Elements
The items in the intersection.
options: SchemaOptions<object, UnionToIntersection<Elements[number][infer]>> = {}
Additional options to pass to the tuple.
Returns IntersectionType<Elements>
Create a new
IntersectionType
instance with the given options.Example