Commit 692f02eb authored by Robert Knight's avatar Robert Knight

Type catch arguments as `any` rather than `unknown`

Disable a change/feature added in TypeScript 4.4 so that our existing
code typechecks. In most cases the handler is just making the pretty safe
assumption that the thrown error is a subclass of `Error`.
parent 6d2dbc21
......@@ -9,7 +9,10 @@
"noEmit": true,
"strict": true,
"noImplicitAny": false,
"target": "ES2020"
"target": "ES2020",
// Let argument to catch statement be `any` rather than `unknown`.
"useUnknownInCatchVariables": false
},
"include": ["**/*.js"],
"exclude": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment