Packages icon indicating copy to clipboard operation
Packages copied to clipboard

[Javascript] Typescript: function expressions assigned to type-annotated variables not seen as functions

Open willstott101 opened this issue 4 years ago • 1 comments

What happened?

Both of these variables should be green.

image

willstott101 avatar Dec 03 '21 12:12 willstott101

See #2267.

The lookahead could probably be improved to handle simple cases like the above, but it's probably about time I just rewrote function assignment detection altogether.

Thom1729 avatar Dec 08 '21 02:12 Thom1729