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