envelopeChange()
Wrap a raw change payload in a D82 storage envelope.
Import
Section titled “Import”import { envelopeChange } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function envelopeChange( change: T, opts: ChangeEnvelopeOptions,): ChangeEnvelope<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
change | T | change value used by the helper. |
opts | ChangeEnvelopeOptions | Options that configure the helper. |
Returns
Section titled “Returns”A ChangeEnvelope<T> value.
Example
Section titled “Example”import { envelopeChange } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/change.ts