JS: Add test

This commit is contained in:
Asger F
2019-09-02 14:31:40 +01:00
parent 54d47f60da
commit 8737dbb73d
6 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
| B in module 'mylib' | A in module 'mylib' |
| C in module 'mylib' | B in module 'mylib' |
| D in module 'mylib' | C in module 'mylib' |

View File

@@ -0,0 +1,5 @@
import javascript
from TypeName tn
where tn.hasQualifiedName("mylib", _)
select tn, tn.getABaseTypeName()

View File

@@ -0,0 +1,4 @@
export interface A {}
export interface B extends A {}
export interface C extends B {}
export interface D extends C {}

View File

@@ -0,0 +1 @@
semmle-extractor-options:--exclude node_modules/**

View File

@@ -0,0 +1,5 @@
{
"compilerOptions": {
"baseUrl": "./"
}
}

View File

@@ -0,0 +1,3 @@
import { D } from "mylib";
export var foo: D = null;