From bcc198cb727dd6e445109e60aef81291921278b2 Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Fri, 21 Feb 2025 11:58:29 +0100
Subject: frontend: Use better type for onclick handler in AddButton

---
 frontend/src/lib/components/AddButton.svelte | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'frontend/src/lib/components/AddButton.svelte')

diff --git a/frontend/src/lib/components/AddButton.svelte b/frontend/src/lib/components/AddButton.svelte
index f07eafd..7a07bd7 100644
--- a/frontend/src/lib/components/AddButton.svelte
+++ b/frontend/src/lib/components/AddButton.svelte
@@ -1,5 +1,12 @@
 <script lang="ts">
-	let { title, onclick }: { title: string; onclick: () => void } = $props();
+	import type { MouseEventHandler } from 'svelte/elements';
+
+	interface Props {
+		title: string;
+		onclick: MouseEventHandler<HTMLButtonElement>;
+	}
+
+	let { title, onclick }: Props = $props();
 </script>
 
 <button class="btn-blue" {title} aria-label={title} {onclick}>
-- 
cgit v1.2.3-2-gb3c3

