API Reference
writableStore()
Creates a writable store.
Import
import { writableStore } from "@graphrefly/ts/adapters";
Signature
function writableStore(
node: Node<T>,
opts: WritableStoreOptions<T> = {},
): WritableStore<T>
Parameters
| Parameter | Type | Description |
|---|---|---|
node | Node<T> | node value used by the helper. |
opts | WritableStoreOptions<T> | Options that configure the helper. |
Returns
The writable store result.
Example
import { writableStore } from "@graphrefly/ts/adapters";
Source
packages/ts/src/adapters/store.ts