Member predicate TupleType::getRestElementIndex
Gets the index of the rest element.
For example, for a type [number, ...string[]]
the result is 1,
or for a type [...number[], string]
the result is 0.
Gets the index of the rest element.
For example, for a type [number, ...string[]]
the result is 1,
or for a type [...number[], string]
the result is 0.