Type alias StreamReadable<T>
StreamReadable<T>: Omit<Stream.Readable, "on"> & {
[asyncIterator]() => AsyncIterableIterator<T>;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
on(event, listener) => Readable;
}
Type declaration
-
[asyncIterator]:function
- [asyncIterator](): AsyncIterableIterator<T>
-
Returns AsyncIterableIterator<T>
-
on:function
- on(event, listener): Readable
-
Parameters
-
event: "data"
-
listener: ((chunk) => void)
-
- (chunk): void
-
Returns void
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "close"
-
listener: (() => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "drain"
-
listener: (() => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "end"
-
listener: (() => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "error"
-
listener: ((err) => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "finish"
-
listener: (() => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "pause"
-
listener: (() => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "pipe"
-
listener: ((src) => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "readable"
-
listener: (() => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "resume"
-
listener: (() => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: "unpipe"
-
listener: ((src) => void)
Returns Readable
- on(event, listener): Readable
-
Parameters
-
event: string | symbol
-
listener: ((...args) => void)
-
- (...args): void
-
Returns void
Returns Readable
Stream.Readable with additional types for the
on(data)
method and the async iterator. Everything else is an exact copy from stream.d.ts