Skip to content
PACKAGES

reactiveCollectionChangeFrameCodec()

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

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

A Codec<ReactiveCollectionChangeFrame<K, C>> value.

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

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