Creates an instance of UndoManager.
Do not use directly, use undoMiddleware instead.
The store currently being used to store undo/redo action events.
If redo can be performed (if there is at least one redo action available)
If undo can be performed (if there is at least one undo action available).
Returns if undo recording is currently disabled or not for this particular UndoManager.
The number of redo actions available.
The redo stack, where the first operation to redo will be the last of the array. Do not manipulate this array directly.
The number of undo actions available.
The undo stack, where the first operation to undo will be the last of the array. Do not manipulate this array directly.
Clears the redo queue.
Clears the undo queue.
Creates a custom group that can be continued multiple times and then ended.
Optional group name.
An API to continue/end the group.
Disposes the undo middleware.
Redoes the previous action. Will throw if there is no action to redo.
Undoes the last action. Will throw if there is no action to undo.
Runs a synchronous code block as an undo group. Note that nested groups are allowed.
Group name.
Code block.
Code block return value.
Runs a synchronous code block as an undo group. Note that nested groups are allowed.
Code block.
Code block return value.
Runs an asynchronous code block as an undo group. Note that nested groups are allowed.
Group name.
Flow function.
Flow function return value.
Runs an asynchronous code block as an undo group. Note that nested groups are allowed.
Flow function.
Flow function return value.
Skips the undo recording mechanism for the code block that gets run synchronously inside.
Code block return type.
Code block to run.
The value returned by the code block.
Generated using TypeDoc
Manager class returned by
undoMiddlewarethat allows you to perform undo/redo actions.