Skip to content
PACKAGES

reactiveCollectionSnapshotFrameCodec()

Codec for D161 snapshot frames with strict JSON validation on both encode and decode.

import { reactiveCollectionSnapshotFrameCodec } from "@graphrefly/ts/storage";
function reactiveCollectionSnapshotFrameCodec(kind: K): Codec<ReactiveCollectionSnapshotFrame<K, S>>
ParameterTypeDescription
kindKkind value used by the helper.

A Codec<ReactiveCollectionSnapshotFrame<K, S>> value.

import { reactiveCollectionSnapshotFrameCodec } from "@graphrefly/ts/storage";

packages/ts/src/storage/reactive-collection.ts