mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
TS: Support declare modifier for fields
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| tst.ts:2:5:2:22 | declare x: number; | true |
|
||||
@@ -0,0 +1,5 @@
|
||||
import javascript
|
||||
|
||||
from FieldDeclaration f, boolean ambient
|
||||
where if f.isAmbient() then ambient = true else ambient = false
|
||||
select f, ambient
|
||||
@@ -0,0 +1,3 @@
|
||||
class C {
|
||||
declare x: number;
|
||||
}
|
||||
Reference in New Issue
Block a user