Skip to content

Commit a307051

Browse files
[type] properly type Vue node tooltip config pt object (#5832)
## Summary Changes `any` type to proper type per the documentation here https://primevue.org/tooltip/#api.tooltip.interfaces.TooltipOptions.pt ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5832-type-properly-type-Vue-node-tooltip-config-pt-object-27c6d73d365081ea99c2c719d9ee6586) by [Unito](https://www.unito.io)
1 parent 02b3b8e commit a307051

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/renderer/extensions/vueNodes/composables/useNodeTooltips.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { TooltipDirectivePassThroughOptions } from 'primevue'
12
import { type MaybeRef, type Ref, computed, unref } from 'vue'
23

34
import type { SafeWidgetData } from '@/composables/graph/useGraphNodeManager'
@@ -85,7 +86,7 @@ export function useNodeTooltips(
8586
showDelay: number
8687
disabled: boolean
8788
appendTo?: HTMLElement
88-
pt?: any
89+
pt?: TooltipDirectivePassThroughOptions
8990
} = {
9091
value: tooltipText,
9192
showDelay: tooltipDelay as number,

0 commit comments

Comments
 (0)