Skip to content
PACKAGES

reactiveCollectionChangeFrame()

Build a D161 strict-JSON change frame before validation/encoding.

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

A ReactiveCollectionChangeFrame<K, C> value.

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

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