summaryrefslogtreecommitdiff
path: root/cli/tsc
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/tsc
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/tsc')
-rw-r--r--cli/tsc/99_main_compiler.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index 527a4964f..7650ff95b 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -188,6 +188,10 @@ delete Object.prototype.__proto__;
/** Diagnostics that are intentionally ignored when compiling TypeScript in
* Deno, as they provide misleading or incorrect information. */
const IGNORED_DIAGNOSTICS = [
+ // TS2306: File '.../index.d.ts' is not a module.
+ // We get this for `x-typescript-types` declaration files which don't export
+ // anything. We prefer to treat these as modules with no exports.
+ 2306,
// TS2688: Cannot find type definition file for '...'.
// We ignore because type defintion files can end with '.ts'.
2688,