From 8d4a02d18537b94f5ce1d2122c3e3128d9108c81 Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Sun, 31 Mar 2024 13:29:38 +0200
Subject: frontend: Simplify types in Select.svelte

Use an intermediary Item type that we can put in a union.
---
 frontend/src/lib/components/Select.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/frontend/src/lib/components/Select.svelte b/frontend/src/lib/components/Select.svelte
index 413b50c..227959d 100644
--- a/frontend/src/lib/components/Select.svelte
+++ b/frontend/src/lib/components/Select.svelte
@@ -8,7 +8,8 @@
 	let valueAsObject = false;
 	let multiple = false;
 
-	type Value = (number | string | ListItem)[] | number | string | ListItem | undefined | null;
+	type Item = number | string | ListItem;
+	type Value = Item | Item[] | undefined | null;
 
 	export let clearable = false;
 	export let placeholder = 'Select...';
-- 
cgit v1.2.3-2-gb3c3

