GraphReFlyTS

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

ParameterTypeDescription
kindKkind 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