summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/package_json/deno_json/main.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-23 17:20:23 -0500
committerGitHub <noreply@github.com>2023-02-23 23:20:23 +0100
commite57b38f8b216bc8c0c1c22c10ab5c9ce2560c58a (patch)
treea83e2dfd1c2b0af6bfbd68e3e54b0078a1915366 /cli/tests/testdata/package_json/deno_json/main.ts
parentda781280b8422b4116473b366fb7d207909a31da (diff)
fix(npm): allow resolving from package.json when an import map exists (#17905)
Diffstat (limited to 'cli/tests/testdata/package_json/deno_json/main.ts')
-rw-r--r--cli/tests/testdata/package_json/deno_json/main.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/package_json/deno_json/main.ts b/cli/tests/testdata/package_json/deno_json/main.ts
new file mode 100644
index 000000000..7768ff3fc
--- /dev/null
+++ b/cli/tests/testdata/package_json/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();