UNPKG

@tolokoban/ui

Version:

React components with theme

8 lines 293 B
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