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
{{ message }}
Repository navigation
No suggestion diagnostic for unchecked JS files in method from class #45479
The error is suppressed for property accesses on a class because the compiler doesn't understand JS constructor functions well enough. In particular, it doesn't understand any inheritance patterns.
I think that rule could be improved to allow suggestions from class types that are known to come from a class declaration or expression which don't have an extends clause. It's constructor functions where I observed the bad suggestions, and it's possible that completions from a base class might also be bad.
Activity
DanielRosenwasser commentedon Aug 16, 2021
Ugh, from #44271
sandersn commentedon Aug 19, 2021
I think that rule could be improved to allow suggestions from class types that are known to come from a class declaration or expression which don't have an
extendsclause. It's constructor functions where I observed the bad suggestions, and it's possible that completions from a base class might also be bad.That rule is even harder to explain though.