Type Alias: UndoableSetter<T>
UndoableSetter<
T> = (next) =>void
Defined in: use-undoable-state.ts:18
Setter accepted by useUndoableState. Mirrors the React useState
setter shape, including the functional-updater form.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
next | T | ((current) => T) |
Returns
void