UNPKG

@helenejs/react

Version:

Real-time Web Apps for Node.js

4 lines (3 loc) 319 B
import { EventEmitter2 } from 'eventemitter2'; import { ThrottleOptions } from 'ahooks/lib/useThrottle/throttleOptions'; export declare function useThrottledEvents(emitter: EventEmitter2, events: string[], callback: (...args: any[]) => void, deps?: any[], throttleMs?: number, throttleOptions?: ThrottleOptions): void;