Akryum / floating-vue

💬 Easy tooltips, popovers, dropdown, menus... for Vue
https://floating-vue.starpad.dev/
MIT License
3.34k stars 336 forks source link

v-tooltip is of type "any" #1042

Open martinszeltins opened 5 months ago

martinszeltins commented 5 months ago

The type of v-tooltip is any. There is not IDE autocomplete or type safety available.

<template>
    <div v-tooltip="{ content: 'Hello' }">
        Hello
    </div>
</template>

This could be fixed by simply augmenting the ComponentCustomProperties

declare module 'vue' {
    interface ComponentCustomProperties {
        vTooltip: ..........
    }
}