UNPKG
@tolokoban/ui
Version:
latest (0.23.4)
0.23.4
0.23.3
0.23.2
0.23.1
0.23.0
0.22.2
0.22.1
0.22.0
0.21.7
0.21.6
0.21.5
0.21.4
0.21.3
0.21.2
0.21.1
0.21.0
0.20.4
0.20.3
0.20.1
0.20.0
0.19.3
0.19.2
0.19.1
0.19.0
0.18.2
0.18.1
0.18.0
0.17.10
0.17.9
0.17.8
0.17.7
0.17.6
0.17.2
0.17.1
0.17.0
0.16.0
0.15.0
0.14.0
0.12.5
0.12.4
0.12.3
0.11.1
0.11.0
0.10.0
0.9.2
0.9.1
0.9.0
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.0
0.4.0
React components with theme
tolokoban.github.io/ui
tolokoban/tgd2
@tolokoban/ui
/
lib
/
dist
/
hooks
/
undoable-state.d.ts
8 lines
•
293 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
export
declare
function
useUndoableState<
Type
>(
defaultValue
:
Type
): [
value
:
Type
,
setValue
:
(
value
:
Type
) =>
void
,
manager
:
Undoable
];
export
interface
Undoable
{
undo
():
void
;
redo
():
void
;
canUndo
():
boolean
;
canRedo
():
boolean
; }
//# sourceMappingURL=undoable-state.d.ts.map