summaryrefslogtreecommitdiff
path: root/tests/specs/check/cjs_default_export/main.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-26 18:52:57 -0400
committerGitHub <noreply@github.com>2024-03-26 18:52:57 -0400
commitac4a5f74b8e56a360e0a0543a6fc45099e13b95a (patch)
tree463796fb830eae41fc039512bb1ce79919195735 /tests/specs/check/cjs_default_export/main.ts
parent6b95c53e48a2622f4f2b6fdfa6c2c26dc30bbba4 (diff)
feat: TypeScript 5.4 (#23086)
Fork PR: https://github.com/denoland/TypeScript/pull/10 Closes #23080
Diffstat (limited to 'tests/specs/check/cjs_default_export/main.ts')
-rw-r--r--tests/specs/check/cjs_default_export/main.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/specs/check/cjs_default_export/main.ts b/tests/specs/check/cjs_default_export/main.ts
new file mode 100644
index 000000000..20a78f6d3
--- /dev/null
+++ b/tests/specs/check/cjs_default_export/main.ts
@@ -0,0 +1,4 @@
+import cjsDefault from "npm:@denotest/cjs-default-export";
+
+// should error since cjsDefault.default() is a number
+export const Test: string = cjsDefault.default();