Page type-check: strict's flags that cost nothing, and catch variables as unknown (#235)

why(e) gives a caught error's message; each catch read e.message as any.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 15:51:41 +00:00
parent f20660a7d5
commit 78704e40f2
7 changed files with 36 additions and 28 deletions

View File

@@ -5,7 +5,13 @@
"target": "es2022",
"lib": ["es2022", "dom", "dom.iterable"],
"noEmit": true,
// strict, a flag at a time (#235); noImplicitAny and strictNullChecks still to come.
"strict": false,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"noImplicitThis": true,
"alwaysStrict": true,
"useUnknownInCatchVariables": true,
"skipLibCheck": true
},
"include": ["web/src/*.ts"]