API Reference
reactiveCollectionChangeFrame()
Build a D161 strict-JSON change frame before validation/encoding.
Import
import { reactiveCollectionChangeFrame } from "@graphrefly/ts/storage";
Signature
function reactiveCollectionChangeFrame(
kind: K,
change: C,
): ReactiveCollectionChangeFrame<K, C>
Parameters
| Parameter | Type | Description |
|---|---|---|
kind | K | kind value used by the helper. |
change | C | change value used by the helper. |
Returns
A ReactiveCollectionChangeFrame<K, C> value.
Example
import { reactiveCollectionChangeFrame } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/reactive-collection.ts