JS: test case with unresolved types in TS

This commit is contained in:
Asger F
2019-04-16 12:47:08 +01:00
parent c9c9a32a37
commit 6b2b64cb2e
5 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1 @@
| ResolvedType | resolved | ResolvedType |

View File

@@ -0,0 +1,5 @@
import javascript
from TypeAnnotation type, string mod, string name
where type.hasQualifiedName(mod, name)
select type, mod, name

View File

@@ -0,0 +1,3 @@
export interface ResolvedType {
x: number;
}

View File

@@ -0,0 +1 @@
{ "include": ["."] }

View File

@@ -0,0 +1,5 @@
import { UnresolvedType } from "unresolved";
import { ResolvedType } from "resolved";
let x: UnresolvedType;
let y: ResolvedType;