assertReactiveCollectionSnapshotFrame()
Validate a D161 snapshot frame and reject non-strict-JSON payloads honestly.
Import
Section titled “Import”import { assertReactiveCollectionSnapshotFrame } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function assertReactiveCollectionSnapshotFrame( value: unknown, expectedKind: K,): ReactiveCollectionSnapshotFrame<K, S>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
expectedKind | K | expected kind value used by the helper. |
Returns
Section titled “Returns”The narrowed, validated value.
Example
Section titled “Example”import { assertReactiveCollectionSnapshotFrame } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/reactive-collection.ts