restoreReactiveIndex()
D161 synchronous collection-owned restore for sorted index rows; key-codec I/O stays outside.
Import
Section titled “Import”import { restoreReactiveIndex } from "@graphrefly/ts/data-structures";Signature
Section titled “Signature”function restoreReactiveIndex( state: ReactiveIndexRestoreState<K, V> | readonly IndexRow<K, V>[], options: ReactiveIndexOptions = {},): ReactiveIndex<K, V>Parameters
Section titled “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
Section titled “Returns”A ReactiveIndex<K, V> value.
Example
Section titled “Example”import { restoreReactiveIndex } from "@graphrefly/ts/data-structures";Source
Section titled “Source”packages/ts/src/data-structures/persistence.ts