UNPKG

@palmares/events

Version:

This is the events framework for palmares, it's responsible for handling everything that is Pub/Sub like websockets, pub/sub like redis, and other types of asynchronous background tasks

18 lines 682 B
export type EventEmitterOptionsType = { wildcards?: { use: boolean; delimiter?: string; }; layer?: { use: import('./index').EventEmitter | Promise<import('./index').EventEmitter>; channels: string[]; }; results?: { /** How long we should wait for the result of the emitted event */ timeout?: number; /** How long we should wait for the listener to notify it's handling on a result */ pingTimeout?: number; }; }; export type ResultWrappedCallbackType = (resultsEventName: string, resultKey: string, channelLayer: string | null, ...data: any) => Promise<void>; //# sourceMappingURL=types.d.ts.map