import { el, on } from "deka-dom-el"; import { S } from "deka-dom-el/signals"; document.body.append( el(HelloWorldComponent, { initial: "🚀" }) ); /** @typedef {"🎉" | "🚀"} Emoji */ /** @param {{ initial: Emoji }} attrs */ function HelloWorldComponent({ initial }){ const clicks= S(0); const emoji= S(initial); /** @param {HTMLOptionElement} el */ const isSelected= el=> (el.selected= el.value===initial); // @ts-expect-error 2339: The