You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working in a TypeScript codebase is fantastic, and it really shines when using strict typing for everything, as you can be fairly confident when refactoring. I've spent full days refactoring strictly-typed TypeScript codebases, and everything worked on the first try as soon as the type-checker had no more errors to report. We should aim towards stricter type-checking to increase confidence when making changes to our codebase.
This issue speficially includes the work needed to set noImplicitAny to true in tsconfig.json. Setting this to true currently exposes 261 errors in main, most of which are easy to fix. Implicit any is usually caused by failing inferred types, which in turn is caused by overly lax typing on our end.
Also consider denying explicit any, making the project very strict (but hardened).
Description
Working in a TypeScript codebase is fantastic, and it really shines when using strict typing for everything, as you can be fairly confident when refactoring. I've spent full days refactoring strictly-typed TypeScript codebases, and everything worked on the first try as soon as the type-checker had no more errors to report. We should aim towards stricter type-checking to increase confidence when making changes to our codebase.
This issue speficially includes the work needed to set
noImplicitAny
totrue
intsconfig.json
. Setting this totrue
currently exposes 261 errors in main, most of which are easy to fix. Implicitany
is usually caused by failing inferred types, which in turn is caused by overly lax typing on our end.Also consider denying explicit
any
, making the project very strict (but hardened).Related issues
The text was updated successfully, but these errors were encountered: