jotai-history-global
Version:
Lightweight global undo/redo extension for Jotai. / 为 Jotai 提供全局撤销、重做功能的轻量扩展。
13 lines (12 loc) • 309 B
TypeScript
/**
* useHistory Hook
*
* React hook for managing the history system (undo/redo)
*/
import type { HistoryActions } from './types';
/**
* Hook to access and control the global history system
*
* @returns Actions and state for history management
*/
export declare function useHistory(): HistoryActions;