API Reference
reactiveCollectionSnapshotFrameCodec()
Codec for D161 snapshot frames with strict JSON validation on both encode and decode.
Import
import { reactiveCollectionSnapshotFrameCodec } from "@graphrefly/ts/storage";
Signature
function reactiveCollectionSnapshotFrameCodec(kind: K): Codec<ReactiveCollectionSnapshotFrame<K, S>>
Parameters
| Parameter | Type | Description |
|---|---|---|
kind | K | kind value used by the helper. |
Returns
A Codec<ReactiveCollectionSnapshotFrame<K, S>> value.
Example
import { reactiveCollectionSnapshotFrameCodec } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/reactive-collection.ts