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
.vue files do not recognize valid JSDoc syntax (using @typedef to define types).
See reproduction repo below. Basically, when I type getAudiences(, IntelliSense shows options as being of type any, which is incorrect. However, if you import this function in a regular .js file, you'll see it shows ApiOptions, and it's possible to trigger auto-suggest which shows the individual ApiOptions properties, too.
Info
Problem
.vue files do not recognize valid JSDoc syntax (using
@typedef
to define types).See reproduction repo below. Basically, when I type
getAudiences(
, IntelliSense showsoptions
as being of typeany
, which is incorrect. However, if you import this function in a regular .js file, you'll see it showsApiOptions
, and it's possible to trigger auto-suggest which shows the individualApiOptions
properties, too.Example in .vue file:
Example in .js file:
Reproducible Case
https://github.com/ffxsam/vetur-jsdoc-bug
The text was updated successfully, but these errors were encountered: