mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Update javascript/ql/src/semmle/javascript/TypeScript.qll
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
committed by
GitHub
parent
055275b971
commit
1cac692b1d
@@ -2150,7 +2150,7 @@ class TupleType extends ArrayType, @tuple_type {
|
||||
|
||||
/**
|
||||
* Gets the index of the rest element.
|
||||
* E.g. for a type `[number, ...string[]]` the result is 1,
|
||||
* For example, for a type `[number, ...string[]]` the result is 1,
|
||||
* or for a type `[...number[], string]` the result is 0.
|
||||
*/
|
||||
int getRestElementIndex() { tuple_type_rest_index(this, result) }
|
||||
|
||||
Reference in New Issue
Block a user