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
Description of the bug
When using the vue3-popper in a library that's going to be type defined with vue-tsc then errors occur because vue3-popper uses prop definition that isn't exported.
To Reproduce
Steps to reproduce the behavior:
npm i vue-tsc -D
npx vue-tsc --declaration --emitDeclarationOnly
See error
Expected behavior
Vue3-popper should inline or export Props interface.
Screenshots
This fixes it:
So the fix to the component should be something like this:
Description of the bug
When using the vue3-popper in a library that's going to be type defined with vue-tsc then errors occur because vue3-popper uses prop definition that isn't exported.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Vue3-popper should inline or export Props interface.
Screenshots
This fixes it:
So the fix to the component should be something like this:
Links
https://bytemeta.vip/repo/vuejs/docs/issues/1678
https://vuejs.org/api/sfc-script-setup.html#default-props-values-when-using-type-declaration
The text was updated successfully, but these errors were encountered: