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
We experimented with inferring the type of this by the surrounding object, but because it broke a lot of existing code (see #8191 and #7801 (comment)), we couldn't add the change.
You'll be able to add an explicit this type in each method in TypeScript 2.0 (check our nightlies with npm install -g typescript@next):
If you ever want to avoid this being typed as any, we've also provided the --noImplicitThis flag, which gives an error when you used this and the type is not inferrable.
Hi, maybe this is a bug but is not showing any intellisense regarding with the current object.
TypeScript Version: 1.8.0
Code
Expected behavior:
Offer intellisense for the current object (this)
Actual behavior:
The text was updated successfully, but these errors were encountered: