Skip to main content

Interface: AmendPatch

Defined in: types.ts:220

Partial replacement payload for amend(patch).

Targets only the most recent committed past entry.

Typical usage keeps the original undo and supplies only a refined redo, so one undo still restores the pre-amend state.

Properties

label?

optional label?: string

Defined in: types.ts:234

Replacement label. Omit to preserve the existing label.


meta?

optional meta?: Record<string, unknown>

Defined in: types.ts:237

Replacement metadata. Omit to preserve existing metadata.


redo?

optional redo?: (signal) => void | Promise<void>

Defined in: types.ts:225

Replacement redo closure for the last entry. Omit to preserve the existing redo.

Parameters

ParameterType
signalAbortSignal

Returns

void | Promise<void>


undo?

optional undo?: (signal) => void | Promise<void>

Defined in: types.ts:231

Replacement undo closure for the last entry. Omit to preserve the existing undo.

Parameters

ParameterType
signalAbortSignal

Returns

void | Promise<void>