File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2777,6 +2777,22 @@ declare function $inspect<T extends any[]>(
27772777 */
27782778declare function $host < El extends HTMLElement = HTMLElement > ( ) : El ;
27792779
2780+ /**
2781+ * Creates a lazy object or array property binding, similar to that of a getter/setter. If passed
2782+ * a single argument, the lazy property binding with be read-only.
2783+ *
2784+ * ```svelte
2785+ * let count = $state(0);
2786+ * let double = $derived(count * 2);
2787+ *
2788+ * let object = {
2789+ * count: $lazy(count, value => count = value),
2790+ * double: $lazy(double),
2791+ * };
2792+ * ```
2793+ *
2794+ * https://svelte-5-preview.vercel.app/docs/runes#$lazy
2795+ */
27802796declare function $lazy < V > ( value : V , setter : ( value : V ) => unknown ) : V ;
27812797
27822798//# sourceMappingURL=index.d.ts.map
You can’t perform that action at this time.
0 commit comments