From bfd9912e1faa30a92472252b77878714e668a3d4 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 27 Oct 2022 08:12:40 -0400 Subject: fix(typescript): allow synthetic default imports when using `ModuleKind.ESNext` (#16438) Closes #16437 --- cli/tests/testdata/check/export_equals_declaration_file/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cli/tests/testdata/check/export_equals_declaration_file/main.ts (limited to 'cli/tests/testdata/check/export_equals_declaration_file/main.ts') diff --git a/cli/tests/testdata/check/export_equals_declaration_file/main.ts b/cli/tests/testdata/check/export_equals_declaration_file/main.ts new file mode 100644 index 000000000..e20a735d5 --- /dev/null +++ b/cli/tests/testdata/check/export_equals_declaration_file/main.ts @@ -0,0 +1,6 @@ +// @deno-types="./other.d.ts" +import Test, { type Attributes } from "./other.js"; + +const other: Attributes = {}; +console.log(Test()); +console.log(other); -- cgit v1.2.3