feat: upgrade app to svelte-5

This commit is contained in:
2024-11-02 17:21:04 +01:00
parent a87add30ff
commit fa659ab74e
12 changed files with 1754 additions and 7340 deletions

View File

@ -6,10 +6,10 @@
type Button = { type: "button"; label?: string; callback: () => void };
type Input = NodeInput | Button;
type InputType = NodeInput | Button;
interface Nested {
[key: string]: (Nested & { __title?: string }) | Input;
[key: string]: (Nested & { __title?: string }) | InputType;
}
export let id: string;
@ -24,7 +24,7 @@
export let depth = 0;
const keys = Object.keys(settings).filter((key) => key !== "__title");
function isNodeInput(v: Input | Nested): v is Input {
function isNodeInput(v: InputType | Nested): v is InputType {
return v && "type" in v;
}
</script>