vue3-popper
vue3-popper copied to clipboard
Interface props isn't exported.
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:

Links https://bytemeta.vip/repo/vuejs/docs/issues/1678 https://vuejs.org/api/sfc-script-setup.html#default-props-values-when-using-type-declaration
Outcome from vue-tsc, when my PopupMenu component wraps vue3-popper
src/components/PopupMenu/PopupMenu.vue:40:1 - error TS4082: Default export of the module has or is using private name 'Props'.
40 export default defineComponent({ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
I am also looking for a way to import the Props from the vue3-tooltip.