strong type for selected in nav items

This commit is contained in:
2024-10-11 21:34:00 -05:00
parent 5198725153
commit 0a20db91ac

View File

@@ -3,6 +3,7 @@
export let destination: Pane; export let destination: Pane;
let selected: boolean;
$: selected = destination === $pane; $: selected = destination === $pane;
function handleKey({ key }: KeyboardEvent) { function handleKey({ key }: KeyboardEvent) {