Tuple<T>: [T, ...T[]]

This utility type can be used in place of T[] where you want TS to infer things as tuples as opposed to array. This

Type Parameters

  • T = unknown

Generated using TypeDoc