Aller au contenu principal

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