tupleWithRest()
tupleWithRest<
T,R>(schemas,restSchema,message?):TupleWithRestSchema<T,R>
Tuple schema with variable length (rest).
Type Parametersβ
T: T extends readonly GenericSchema[]β
R: R extends GenericSchemaβ
Parametersβ
schemas: Tβ
Array of schemas for fixed tuple positions.
restSchema: Rβ
Schema for rest elements.
message?: stringβ
Custom error message (optional).
Returns: TupleWithRestSchema<T, R>β
TupleWithRestSchema with variable length.
Sinceβ
2.0.0