API Reference
reactiveIndex()
Create a reactive dual-key index (D54/D60). DELTA + lazy pull SNAPSHOT + pullId via {@link collectionCore}; this layer adds the sorted backend + Z reverse-lookup surface.
Import
import { reactiveIndex } from "@graphrefly/ts/data-structures";
Signature
function reactiveIndex(options: ReactiveIndexOptions = {}): ReactiveIndex<K, V>
Parameters
| Parameter | Type | Description |
|---|---|---|
options | ReactiveIndexOptions | Options that configure the helper. |
Returns
A ReactiveIndex<K, V> value.
Example
import { reactiveIndex } from "@graphrefly/ts/data-structures";
Source
packages/ts/src/graph/data-structures/reactive-index.ts