Akryum / floating-vue

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

v-tooltip is of type "any" #1042

Open martinszeltins opened 3 months ago

martinszeltins commented 3 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: ..........
    }
}