Open juruus opened 2 years ago
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.
Any updates on 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