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
Using VueJS 2 (javascript), I'm trying to add better intellisense in VSCode.
I can use JSDoc syntax to add type definitions within a component, but don't know how to access those definitions from other components.
In the simplified example below, I have a Base Component with the getIsLoaded and getSetIsLoaded computed properties.
Below that, is the Derived Component which extends: BaseComponent.
I want to make VSCode aware of getSetIsLoaded and getIsLoaded, so that another developer can just type 'this.g' to get a list of the available properties and their types.
I'm not sure if this is currently supported (I notice that there's a todo relating to the extends option in the type definitions // TODO: support properly inferred 'extends'), but I would really like to know where I'm going wrong, if I am.
The text was updated successfully, but these errors were encountered:
Info
Problem
Using VueJS 2 (javascript), I'm trying to add better intellisense in VSCode.
I can use JSDoc syntax to add type definitions within a component, but don't know how to access those definitions from other components.
In the simplified example below, I have a Base Component with the getIsLoaded and getSetIsLoaded computed properties.
Below that, is the Derived Component which extends: BaseComponent.
I want to make VSCode aware of getSetIsLoaded and getIsLoaded, so that another developer can just type 'this.g' to get a list of the available properties and their types.
Reproducible Case
BaseComponent.vue
DerivedComponent.vue
I'm not sure if this is currently supported (I notice that there's a todo relating to the extends option in the type definitions
// TODO: support properly inferred 'extends'
), but I would really like to know where I'm going wrong, if I am.The text was updated successfully, but these errors were encountered: