New issue
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
Safety of calling unbound methods #1327
Comments
Another option is the |
mightyiam
added a commit
that referenced
this issue
Nov 18, 2023
BREAKING CHANGE: add rule @typescript-eslint/unbound-method Related to #1327 Co-authored-by: Rostislav Simonik <rostislav.simonik@technologystudio.sk>
standard-cd-bot bot
pushed a commit
that referenced
this issue
Nov 18, 2023
## [40.0.0](v39.1.1...v40.0.0) (2023-11-18) ### ⚠ BREAKING CHANGES * add rule @typescript-eslint/unbound-method ### Features * @typescript-eslint/unbound-method ([2ec6d24](2ec6d24)), closes [#1327](#1327)
We have follow-up discussion on discord for And that would require also modification in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently, TypeScript, even in
strict
mode, couldn't care less about the type ofthis
while calling an unbound method.The only way to enforce such safety is to enforce declaration of
this
in functions wherethis
is used.And yet, I don't see such a rule in typescript-eslint.
The text was updated successfully, but these errors were encountered: