gl-store-s3.js/node_modules/aws-sdk/lib/event-stream/event-stream.d.ts

6 lines
268 B
TypeScript

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[];