GraphReFlyTS

API Reference

reactiveCollectionChangeFrameCodec()

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

Import

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

Signature

function reactiveCollectionChangeFrameCodec(kind: K): Codec<ReactiveCollectionChangeFrame<K, C>>

Parameters

ParameterTypeDescription
kindKkind value used by the helper.

Returns

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

Example

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

Source

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