reactiveCollectionSnapshotFrame()
Build a D161 strict-JSON snapshot frame before validation/encoding.
Import
Section titled “Import”import { reactiveCollectionSnapshotFrame } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function reactiveCollectionSnapshotFrame( kind: K, snapshot: S, opts: { readonly changeCursor?: number } = {},): ReactiveCollectionSnapshotFrame<K, S>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
kind | K | kind value used by the helper. |
snapshot | S | snapshot value used by the helper. |
opts | { readonly changeCursor?: number } | Options that configure the helper. |
Returns
Section titled “Returns”A ReactiveCollectionSnapshotFrame<K, S> value.
Example
Section titled “Example”import { reactiveCollectionSnapshotFrame } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/reactive-collection.ts