From ac4a5f74b8e56a360e0a0543a6fc45099e13b95a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 26 Mar 2024 18:52:57 -0400 Subject: feat: TypeScript 5.4 (#23086) Fork PR: https://github.com/denoland/TypeScript/pull/10 Closes #23080 --- tests/specs/check/cjs_default_export/main.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/specs/check/cjs_default_export/main.ts (limited to 'tests/specs/check/cjs_default_export/main.ts') 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(); -- cgit v1.2.3