GraphReFlyTS

API Reference

assertChangeEnvelope()

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

Import

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

Signature

function assertChangeEnvelope(value: unknown): ChangeEnvelope<T>

Parameters

ParameterTypeDescription
valueunknownUnknown value to check or decode.

Returns

The narrowed, validated value.

Example

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

Source

packages/ts/src/storage/change.ts