UNPKG

react-simple-channel

Version:

Lightweight and reactive tab-to-tab communication tool for React & non-React contexts. 一个轻量的 React 多标签页通信工具,支持传统函数和 Hook 两种方式。

3 lines (2 loc) 255 B
export declare function debounce<T extends (...args: any[]) => void>(fn: T, delay: number): (...args: Parameters<T>) => void; export declare function throttle<T extends (...args: any[]) => void>(fn: T, interval: number): (...args: Parameters<T>) => void;