ol/interaction/UndoRedo is an interaction to handle undo/redo on a map.
This example shows how to use the define() method to define a custom action.
For undoing features properties, look at the
undo/redo attributes exmaple.
For more information on UndoRedo interaction look at this example.