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?
optionallabel?:string
Defined in: types.ts:234
Replacement label. Omit to preserve the existing label.
meta?
optionalmeta?:Record<string,unknown>
Defined in: types.ts:237
Replacement metadata. Omit to preserve existing metadata.
redo?
optionalredo?: (signal) =>void|Promise<void>
Defined in: types.ts:225
Replacement redo closure for the last entry. Omit to preserve the existing redo.
Parameters
| Parameter | Type |
|---|---|
signal | AbortSignal |
Returns
void | Promise<void>
undo?
optionalundo?: (signal) =>void|Promise<void>
Defined in: types.ts:231
Replacement undo closure for the last entry. Omit to preserve the existing undo.
Parameters
| Parameter | Type |
|---|---|
signal | AbortSignal |
Returns
void | Promise<void>