This commit is contained in:
eewing
2026-02-17 14:10:16 -06:00
parent 2bca5834c5
commit cf73cd3b4c
11246 changed files with 1690552 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import { boxFrom, boxWith, boxFlatten, toReadonlyBox, type WritableBox } from "./box-extras.svelte.js";
/**
* Creates a writable box.
*
* @returns A box with a `current` property which can be set to a new value.
* Useful to pass state to other functions.
*
* @see {@link https://runed.dev/docs/functions/box}
*/
export declare function box<T>(): WritableBox<T | undefined>;
/**
* Creates a writable box with an initial value.
*
* @param initialValue The initial value of the box.
* @returns A box with a `current` property which can be set to a new value.
* Useful to pass state to other functions.
*
* @see {@link https://runed.dev/docs/functions/box}
*/
export declare function box<T>(initialValue: T): WritableBox<T>;
export declare namespace box {
export var from: typeof boxFrom;
var _a: typeof boxWith;
export var flatten: typeof boxFlatten;
export var readonly: typeof toReadonlyBox;
export var isBox: typeof import("./box-extras.svelte.js").isBox;
export var isWritableBox: typeof import("./box-extras.svelte.js").isWritableBox;
export { _a as with };
}