Skip to content
PACKAGES

assertChangeEnvelope()

Validate a decoded D82 change envelope and return it with typed payload.

import { assertChangeEnvelope } from "@graphrefly/ts/storage";
function assertChangeEnvelope(value: unknown): ChangeEnvelope<T>
ParameterTypeDescription
valueunknownUnknown value to check or decode.

The narrowed, validated value.

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

packages/ts/src/storage/change.ts