From 3c06c95f396b6e911076bc3291d5855ed01b5caa Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Sun, 26 Apr 2026 20:18:30 -0700 Subject: cleanup and ready for launch --- source/library/runes.d.ts | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 source/library/runes.d.ts (limited to 'source/library/runes.d.ts') diff --git a/source/library/runes.d.ts b/source/library/runes.d.ts deleted file mode 100644 index 4b73482..0000000 --- a/source/library/runes.d.ts +++ /dev/null @@ -1,37 +0,0 @@ - - - -/*** EXPORT ------------------------------------------- ***/ - -/** - * Ambient declarations for Svelte 5 runes so `deno check` can type-check - * `.svelte.ts` files. The runtime forms are injected by the Svelte compiler. - */ - -declare function $state(initial: T): T; -declare function $state(): T | undefined; - -declare namespace $state { - function raw(initial: T): T; - function raw(): T | undefined; - function snapshot(value: T): T; -} - -declare function $derived(expression: T): T; - -declare namespace $derived { - function by(fn: () => T): T; -} - -declare function $effect(fn: () => void | (() => void)): void; - -declare namespace $effect { - function pre(fn: () => void | (() => void)): void; - function root(fn: () => void | (() => void)): () => void; - function tracking(): boolean; -} - -declare function $props>(): T; -declare function $bindable(fallback?: T): T; -declare function $inspect(...values: T[]): { with: (fn: (type: "init" | "update", ...values: T[]) => void) => void }; -declare function $host(): T; -- cgit v1.2.3