Skip to main content

hasTupleRest()

hasTupleRest<T, R>(schema): schema is TupleWithRestSchema<T, R>

Type guard to distinguish TupleWithRestSchema from TupleSchema at runtime.


Type Parametersโ€‹

T: T extends readonly GenericSchema[]โ€‹

R: R extends GenericSchemaโ€‹


Parametersโ€‹

schema: TupleSchema<T> | TupleWithRestSchema<T, R>โ€‹

Schema to check


Returns: schema is TupleWithRestSchema<T, R>โ€‹

True if the schema is a TupleWithRestSchema


Sinceโ€‹

2.0.0