UNPKG

helene

Version:
6 lines (5 loc) 511 B
import { EventEmitter2 } from 'eventemitter2'; import { ThrottleOptions } from 'ahooks/lib/useThrottle/throttleOptions'; export declare const onceAll: (emitter: EventEmitter2, events: string[]) => Promise<void>; export declare const waitForAll: (emitter: EventEmitter2, events: string[], timeout?: number) => Promise<void>; export declare const onAllThrottled: (emitter: EventEmitter2, events: string[], callback: (...args: any[]) => void, throttleMs?: number, throttleOptions?: ThrottleOptions) => () => void;