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
The latest Vue minor (3.5.0) introduced support for better typing of global directives (vuejs/core#3399), but vue-tsc and volar seem to completely ignore it and keep the custom global directive types as any.
Reproduction:
Alter GlobalDirectives with a custom directive: declare module '@vue/runtime-core' { interface GlobalDirectives { VTooltip: VTooltip } }
Use v-tooltip in a Vue SFC
What is expected?
v-tooltip has typescript support
What is actually happening?
v-tooltip is typed as any
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered:
Vue - Official extension or vue-tsc version
2.1.4
VSCode version
1.92
Vue version
3.5.0
TypeScript version
5.5.3
System Info
package.json dependencies
No response
Steps to reproduce
The latest Vue minor (3.5.0) introduced support for better typing of global directives (vuejs/core#3399), but vue-tsc and volar seem to completely ignore it and keep the custom global directive types as
any
.Reproduction:
declare module '@vue/runtime-core' { interface GlobalDirectives { VTooltip: VTooltip } }
v-tooltip
in a Vue SFCWhat is expected?
v-tooltip
has typescript supportWhat is actually happening?
v-tooltip
is typed as anyLink to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: