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
Do this you fix only for props. Slots and emits doesn't work anyway.
I found what vue DefineComponent typescript type uses first generic (which is ButtonProps in this case) for another type guards. So, i think fix this issue is replace in @primevue/core type guard DefineComponent:
from
Describe the bug
(Vscode with Volar)
There are no type hinting for this.
But this is ok.
When I import components, it will load the following global type declaration, which will pollute other component's types.
For example, when I import
Button
ofprimeVue
, the otherButton
in template that not import fromprimevue
will be polluted.Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-j7eglm?file=src%2FApp.vue
PrimeVue version
4.0.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: