JavaScript Intellisense doesn't detect types of properties defined in async constructors #61137
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
JavaScript Intellisense doesn't detect types of properties defined in async constructors
Summary
A popular asynchronous constructor pattern in JavaScript is using an async IIFE in the constructor which returns
this
at the end. E.g.However, VSCode Intellisense does not infer the types for properties defined in such a constructor.
Steps to reproduce
y
inClass1
and observe the tooltip:(property) Class1.y: number
y
inClass2
and observe the tooltip:(property) Class2.y: any
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: