API Reference
restoreReactiveIndex()
D161 synchronous collection-owned restore for sorted index rows; key-codec I/O stays outside.
Import
import { restoreReactiveIndex } from "@graphrefly/ts/data-structures";
Signature
function restoreReactiveIndex(
state: ReactiveIndexRestoreState<K, V> | readonly IndexRow<K, V>[],
options: ReactiveIndexOptions = {},
): ReactiveIndex<K, V>
Parameters
| Parameter | Type | Description |
|---|---|---|
state | ReactiveIndexRestoreState<K, V> | readonly IndexRow<K, V>[] | state value used by the helper. |
options | ReactiveIndexOptions | Options that configure the helper. |
Returns
A ReactiveIndex<K, V> value.
Example
import { restoreReactiveIndex } from "@graphrefly/ts/data-structures";
Source
packages/ts/src/data-structures/persistence.ts