helene
Version:
Real-time Web Apps for Node.js
6 lines (5 loc) • 511 B
TypeScript
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;