reactiveCollectionChangeFrameCodec()
Codec for D161 change frames with strict JSON validation on both encode and decode.
Import
Section titled “Import”import { reactiveCollectionChangeFrameCodec } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function reactiveCollectionChangeFrameCodec(kind: K): Codec<ReactiveCollectionChangeFrame<K, C>>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
kind | K | kind value used by the helper. |
Returns
Section titled “Returns”A Codec<ReactiveCollectionChangeFrame<K, C>> value.
Example
Section titled “Example”import { reactiveCollectionChangeFrameCodec } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/reactive-collection.ts