assertChangeEnvelope()
Validate a decoded D82 change envelope and return it with typed payload.
Import
Section titled “Import”import { assertChangeEnvelope } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function assertChangeEnvelope(value: unknown): ChangeEnvelope<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
Section titled “Returns”The narrowed, validated value.
Example
Section titled “Example”import { assertChangeEnvelope } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/change.ts