summaryrefslogtreecommitdiff
path: root/tests/specs/check/package_json_with_deno_json/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/check/package_json_with_deno_json/main.ts')
-rw-r--r--tests/specs/check/package_json_with_deno_json/main.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/check/package_json_with_deno_json/main.ts b/tests/specs/check/package_json_with_deno_json/main.ts
new file mode 100644
index 000000000..7768ff3fc
--- /dev/null
+++ b/tests/specs/check/package_json_with_deno_json/main.ts
@@ -0,0 +1,9 @@
+import { NUMBER_VALUE } from "other";
+import * as test from "@denotest/esm-basic";
+
+test.setValue(2);
+console.log(test.getValue());
+
+// these should cause type errors
+const _strValue1: string = NUMBER_VALUE;
+const _strValue2: string = test.getValue();