diff options
| author | netop://ウィビ <paul@webb.page> | 2026-04-26 20:18:30 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-04-26 20:18:30 -0700 |
| commit | 3c06c95f396b6e911076bc3291d5855ed01b5caa (patch) | |
| tree | 17cd218339c52fbeee93d931303b04a3ff294f8b /source/library/runes.d.ts | |
| parent | f059d97ab7f6d74d61139ac698cb871be7cb632e (diff) | |
| download | graphiql-3c06c95f396b6e911076bc3291d5855ed01b5caa.tar.gz graphiql-3c06c95f396b6e911076bc3291d5855ed01b5caa.zip | |
cleanup and ready for launch
Diffstat (limited to 'source/library/runes.d.ts')
| -rw-r--r-- | source/library/runes.d.ts | 37 |
1 files changed, 0 insertions, 37 deletions
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<T>(initial: T): T; -declare function $state<T>(): T | undefined; - -declare namespace $state { - function raw<T>(initial: T): T; - function raw<T>(): T | undefined; - function snapshot<T>(value: T): T; -} - -declare function $derived<T>(expression: T): T; - -declare namespace $derived { - function by<T>(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 = Record<string, unknown>>(): T; -declare function $bindable<T>(fallback?: T): T; -declare function $inspect<T>(...values: T[]): { with: (fn: (type: "init" | "update", ...values: T[]) => void) => void }; -declare function $host<T extends HTMLElement = HTMLElement>(): T; |