CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (changelog, source)
Search

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.

int getRestElementIndex()