GraphReFlyTS

API Reference

reactiveCollectionChangeFrame()

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

Import

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

Signature

function reactiveCollectionChangeFrame(
	kind: K,
	change: C,
): ReactiveCollectionChangeFrame<K, C>

Parameters

ParameterTypeDescription
kindKkind value used by the helper.
changeCchange value used by the helper.

Returns

A ReactiveCollectionChangeFrame<K, C> value.

Example

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

Source

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