From 9f7d9a42b2bf4c2931a167e7e80f6cc12e4240be Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:19:03 +0200 Subject: [PATCH] Fix typing in setDrag --- client/src/utils/setDrag.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/utils/setDrag.ts b/client/src/utils/setDrag.ts index fef754a15995..baa079764f36 100644 --- a/client/src/utils/setDrag.ts +++ b/client/src/utils/setDrag.ts @@ -1,9 +1,9 @@ /** * Helper to configure datatransfer for drag & drop operations */ -import { useEventStore } from "@/stores/eventStore"; +import { type EventData, useEventStore } from "@/stores/eventStore"; -export function setDrag(evt: DragEvent, data = null, multiple = false) { +export function setDrag(evt: DragEvent, data?: EventData, multiple = false) { const eventStore = useEventStore(); if (data) { evt.dataTransfer?.setData("text", JSON.stringify([data]));