From b3328ddbf8512406f9723f4265c4ae6eb36e1dfb Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 17 Nov 2024 14:26:34 +0200 Subject: [PATCH] ball: add type annotation to brightness --- src/lib/Ball.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Ball.svelte b/src/lib/Ball.svelte index 2b1708d..c004578 100644 --- a/src/lib/Ball.svelte +++ b/src/lib/Ball.svelte @@ -20,7 +20,7 @@ children, }: Props = $props(); - let brightness = $derived(active ? '100%' : '50%') + let brightness: string = $derived(active ? '100%' : '50%') function onclick(): void { if (active)