strong type for selected in nav items

This commit is contained in:
Nicola Clark 2024-10-11 21:34:00 -05:00
parent 5198725153
commit 0a20db91ac
Signed by: nicola
GPG Key ID: 3E1710E7FF08956C

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) {