Home > @polyspec/crudui-generator-core > undoChange
undoChange() function
Take the record before the last change; the next value edit starts a new entry.
Signature:
export declare function undoChange<T>(history: History<T>, current: T): UndoResult<T>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
history |
History<T> | |
|
current |
T |
Returns:
UndoResult<T>