Merge pull request #2579 from asger-semmle/typescript-trace-resolution

Approved by max-schaefer
This commit is contained in:
semmle-qlci
2020-01-03 12:57:43 +00:00
committed by GitHub
6 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1 @@
export function foo();

View File

@@ -0,0 +1,6 @@
| node_modules/@types/foo/index.d.ts:1:17:1:19 | foo | () => any |
| test.ts:1:10:1:12 | foo | () => any |
| test.ts:1:10:1:12 | foo | () => any |
| test.ts:1:21:1:25 | "foo" | any |
| test.ts:3:1:3:3 | foo | () => any |
| test.ts:3:1:3:5 | foo() | any |

View File

@@ -0,0 +1,3 @@
import javascript
from Expr e select e, e.getType()

View File

@@ -0,0 +1,3 @@
import { foo } from "foo";
foo();

View File

@@ -0,0 +1,6 @@
{
"include": ["."],
"compilerOptions": {
"traceResolution": true
}
}