UNPKG

@hocuspocus/common

Version:

shared code for multiple Hocuspocus packages

7 lines (6 loc) 296 B
export declare const useDebounce: () => { debounce: (id: string, func: () => any | Promise<() => any>, debounce: number, maxDebounce: number) => Promise<any>; isDebounced: (id: string) => boolean; isCurrentlyExecuting: (id: string) => boolean; executeNow: (id: string) => any; };