-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Users shouldn't need 'noImplicitThis' on to benefit from 'ThisType<T>' #14518
Comments
@DanielRosenwasser There are multiple new inferences made for |
Yup, sounds like what I had in mind. The thing is that we need to enable this logic for Salsa users anyway, and if a library author wrote I suppose there is a chance that library authors using the |
Indeed, even |
Doesn't really seem worth a breaking change |
From #14141:
Is there a reason that users need
noImplicitThis
on to benefit fromThisType<T>
? This seems unnecessarily restrictive, especially given that we want to give better support in JS files.The text was updated successfully, but these errors were encountered: