summaryrefslogtreecommitdiff
path: root/cli/emit.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-10-28 08:43:40 +1100
committerGitHub <noreply@github.com>2021-10-28 08:43:40 +1100
commita065604155991dbf4417b606d4562d275cd8955f (patch)
tree7f7048d25741e503d795fb9dcc66ca32b4b4fbd0 /cli/emit.rs
parentbe68b82eb43f8e6156bad562b292af11776d38b8 (diff)
feat(cli): enable `useUnknownInCatchVariables` by default (#12547)
Closes #11826 **BREAKING CHANGE** this behaviour was disable when introduced in Deno 1.14/TypeScript 4.4. It will highlight code that unsafely handles variables that are caught, and will cause type errors in unsafe code.
Diffstat (limited to 'cli/emit.rs')
-rw-r--r--cli/emit.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/cli/emit.rs b/cli/emit.rs
index a4713f532..07b6398bb 100644
--- a/cli/emit.rs
+++ b/cli/emit.rs
@@ -160,8 +160,6 @@ pub(crate) fn get_ts_config(
"target": "esnext",
"tsBuildInfoFile": "deno:///.tsbuildinfo",
"useDefineForClassFields": true,
- // TODO(@kitsonk) remove for Deno 2.0
- "useUnknownInCatchVariables": false,
}));
if tsc_emit {
ts_config.merge(&json!({
@@ -213,8 +211,6 @@ pub(crate) fn get_ts_config(
"target": "esnext",
"tsBuildInfoFile": "deno:///.tsbuildinfo",
"useDefineForClassFields": true,
- // TODO(@kitsonk) remove for Deno 2.0
- "useUnknownInCatchVariables": false,
}));
if tsc_emit {
ts_config.merge(&json!({