summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-06-23 17:18:32 +0100
committerGitHub <noreply@github.com>2022-06-23 12:18:32 -0400
commitef7bc5e0a62e1e362704fd2becb5629a7f9f60ba (patch)
treeb4b702e843ea1fb50623c10f82543247e48d60d5 /cli/tests/testdata
parent13f47ec41b46db1ac60f29825519387cfdeaff63 (diff)
fix(check): ignore TS2306 (#14940)
Fixes a regression where this type checking error was being surfaced in certain scenarios.
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/declaration_header_file_with_no_exports.ts2
-rw-r--r--cli/tests/testdata/declaration_header_file_with_no_exports_js.d.ts0
-rw-r--r--cli/tests/testdata/declaration_header_file_with_no_exports_js.js1
3 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/testdata/declaration_header_file_with_no_exports.ts b/cli/tests/testdata/declaration_header_file_with_no_exports.ts
new file mode 100644
index 000000000..ef5da7a38
--- /dev/null
+++ b/cli/tests/testdata/declaration_header_file_with_no_exports.ts
@@ -0,0 +1,2 @@
+import * as foo from "./declaration_header_file_with_no_exports_js.js";
+console.log(foo);
diff --git a/cli/tests/testdata/declaration_header_file_with_no_exports_js.d.ts b/cli/tests/testdata/declaration_header_file_with_no_exports_js.d.ts
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cli/tests/testdata/declaration_header_file_with_no_exports_js.d.ts
diff --git a/cli/tests/testdata/declaration_header_file_with_no_exports_js.js b/cli/tests/testdata/declaration_header_file_with_no_exports_js.js
new file mode 100644
index 000000000..b8ae2bcef
--- /dev/null
+++ b/cli/tests/testdata/declaration_header_file_with_no_exports_js.js
@@ -0,0 +1 @@
+/// <reference types="./declaration_header_file_with_no_exports_js.d.ts" />