variadic tuple

A tuple type containing a spread such as [query: string, ...params: (string | number)[]], so its length can vary.

In more detail

The fixed positions set a minimum length and the rest element can sit at the start, middle or end. It is used to type functions that forward or add arguments, such as middleware.

Related terms

Taught in

References