Skip to main content

intersection3()

intersection3<S1, S2, S3>(schema1, schema2, schema3, message?): IntersectionSchema<readonly [S1, S2, S3]>

Intersection schema with 3 schemas.


Type Parameters​

S1: S1 extends GenericSchema​

S2: S2 extends GenericSchema​

S3: S3 extends GenericSchema​


Parameters​

schema1: S1​

First schema.

schema2: S2​

Second schema.

schema3: S3​

Third schema.

message?: string​

Custom error message (optional).


Returns: IntersectionSchema<readonly [S1, S2, S3]>​

IntersectionSchema with three schemas.


Since​

2.0.0