event-stream.d.ts 268 Bytes Raw Blame History Permalink 1 2 3 4 5 6 export interface StreamingEventStream<Events> extends NodeJS.ReadableStream { on(event: "data", listener: (event: Events) => void): this; on(event: string, listener: Function): this; } export type EventStream<Events> = StreamingEventStream<Events> | Events[];