UndoPointSelector
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
The undo point selector function will be called during layout undo processing to determine up to (and including) which command should the undo be done. Commands are sorted in the list in reversed chronological order - last command processed command is at index 0, command before that at index 1 etc.
The function must return index of command up to (and including) which the undo should be done. It is not possible to undo just some command randomly.
export type UndoPointSelector = (undoableCommands: ReadonlyArray<DashboardLayoutCommands>) => number;
References: DashboardLayoutCommands