diff options
Diffstat (limited to 'cli/tests/testdata/check')
3 files changed, 18 insertions, 0 deletions
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); diff --git a/cli/tests/testdata/check/export_equals_declaration_file/other.d.ts b/cli/tests/testdata/check/export_equals_declaration_file/other.d.ts new file mode 100644 index 000000000..5e1274fa5 --- /dev/null +++ b/cli/tests/testdata/check/export_equals_declaration_file/other.d.ts @@ -0,0 +1,9 @@ +export = other; + +declare function other(): string; + +declare namespace other { + interface Attributes { + [attr: string]: string; + } +} diff --git a/cli/tests/testdata/check/export_equals_declaration_file/other.js b/cli/tests/testdata/check/export_equals_declaration_file/other.js new file mode 100644 index 000000000..f66c03162 --- /dev/null +++ b/cli/tests/testdata/check/export_equals_declaration_file/other.js @@ -0,0 +1,3 @@ +export default function other() { + return "test"; +} |
