UNPKG

@fanoutio/eventstream

Version:

Connect-compatible middleware that enables the easy creation of EventStream endpoints

8 lines 260 B
type Listener = (e: any) => Promise<void> | void; export default class AddressedEvents { private listeners; addListener(fn: Listener): () => void; addressedEvent(event: any): Promise<void>; } export {}; //# sourceMappingURL=AddressedEvents.d.ts.map