summaryrefslogtreecommitdiff
path: root/cli/tests/module_graph
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-11-07 06:53:37 +1100
committerGitHub <noreply@github.com>2020-11-07 06:53:37 +1100
commit4f67f0cc6033983540ed51f1270fb420cac45487 (patch)
tree6e62ed5357396014d938866c39c4ed6fc792d4f3 /cli/tests/module_graph
parent280ab920a8129248f536d4a49b53d5c71ba340f1 (diff)
fix(cli): properly handle type checking root modules with type defini… (#8263)
Diffstat (limited to 'cli/tests/module_graph')
-rw-r--r--cli/tests/module_graph/file_typesref.d.ts1
-rw-r--r--cli/tests/module_graph/file_typesref.js3
2 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/module_graph/file_typesref.d.ts b/cli/tests/module_graph/file_typesref.d.ts
new file mode 100644
index 000000000..8ae31dde3
--- /dev/null
+++ b/cli/tests/module_graph/file_typesref.d.ts
@@ -0,0 +1 @@
+export const a: "a";
diff --git a/cli/tests/module_graph/file_typesref.js b/cli/tests/module_graph/file_typesref.js
new file mode 100644
index 000000000..79da24cae
--- /dev/null
+++ b/cli/tests/module_graph/file_typesref.js
@@ -0,0 +1,3 @@
+/// <reference types="./typesref.d.ts" />
+
+export const a = "a";