mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JS: Add SatisfiesExpr
This commit is contained in:
@@ -235,6 +235,8 @@ module TypeResolution {
|
||||
or
|
||||
value.(TypeAssertion).getTypeAnnotation() = type
|
||||
or
|
||||
value.(SatisfiesExpr).getTypeAnnotation() = type
|
||||
or
|
||||
exists(VarDecl decl |
|
||||
// ValueFlow::step is restricted to variables with at most one assignment. Allow the type annotation
|
||||
// of a variable to propagate to its uses, even if the variable has multiple assignments.
|
||||
|
||||
Reference in New Issue
Block a user