Skip to content
PACKAGES

envelopeChange()

Wrap a raw change payload in a D82 storage envelope.

import { envelopeChange } from "@graphrefly/ts/storage";
function envelopeChange(
change: T,
opts: ChangeEnvelopeOptions,
): ChangeEnvelope<T>
ParameterTypeDescription
changeTchange value used by the helper.
optsChangeEnvelopeOptionsOptions that configure the helper.

A ChangeEnvelope<T> value.

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

packages/ts/src/storage/change.ts