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
TypeScript added the unknown to fix some liberties that are allowed with the any type that can result in runtime errors. I think this was allowing access of properties of null, for example.
Valid uses of any are vanishingly unlikely. We have some consensus to require a rationale in review. Let’s go farther and add a lint rule. There appear to be plugins we can try.
TypeScript added the
unknown
to fix some liberties that are allowed with theany
type that can result in runtime errors. I think this was allowing access of properties of null, for example.Valid uses of
any
are vanishingly unlikely. We have some consensus to require a rationale in review. Let’s go farther and add a lint rule. There appear to be plugins we can try.https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-explicit-any.md
The text was updated successfully, but these errors were encountered: