Accept @property jsdoc #157792
Labels
javascript
JavaScript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Sometimes it is necessary to document classes with properties added dynamically (outside the class). The way I was documenting those before was the following way:
But a recent update of VS Code made this illegal (Property 'propName' is used before being assigned.ts(2565))
There might be a way to document it using @property from JSDoc
But unfortunately it seems to be unsupported by VSCode.
EDIT:
I am aware there is the following syntax
This is not a satisfactory solution though because it will change the semantic of the code when you want to iterate over the properties of an object when its properties are defined in the super class (It changes the order of declaration)
The text was updated successfully, but these errors were encountered: