We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any
These are recent additions to @typescript-eslint. Will potentially require refactoring, but will make our codebase safer.
@typescript-eslint
Some major cases where we currently use any:
catch
asError()
in
unknown
The text was updated successfully, but these errors were encountered:
No branches or pull requests
These are recent additions to
@typescript-eslint
. Will potentially require refactoring, but will make our codebase safer.Some major cases where we currently use
any
:catch
clauses. We should use type guards to check the error type andasError()
if we want the message.in
operator cannot narrow types fromunknown
. Composing type guards would work though, we should look into adopting a library like https://github.com/sindresorhus/is (and make sure it has functions and types expressive enough for us)The text was updated successfully, but these errors were encountered: