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