2 ms·
Is this new feature specific to vanilla JS classes? I've been using autocomplete for Typescript classes in VS Code for as far back as I can remember.
by koolba 9y ago
Is this new feature specific to vanilla JS classes? I've been using autocomplete for Typescript classes in VS Code for as far back as I can remember.
- supergreg 9y agoEdit: I misinterpreted the question at first. I guess in TS you declare a class' properties explicitly while in javascript it is usually done in the constructor. The feature must be related to these dynamic properties. Original answer below. This[0] page says this problem can be also seen in Typescript. But TS has the arrow function as a class method feature that in Javascript is only at stage 2 in it's way to standardization, so it's easier to solve there. [0] https://github.com/Microsoft/TypeScript/wiki/'this'-in-TypeScript https://github.com/Microsoft/TypeScript/wiki/'this'-in-TypeS...