floating-vue icon indicating copy to clipboard operation
floating-vue copied to clipboard

v-tooltip is of type "any"

Open martinszeltins opened this issue 1 year ago • 0 comments

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: ..........
    }
}

martinszeltins avatar Jun 18 '24 07:06 martinszeltins