Interface ReadableStream
Hierarchy
-
EventEmitter
- ReadableStream
Implemented by
Index
Properties
readable
Methods
addListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
emit
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
eventNames
-
Returns (string | symbol)[]
getMaxListeners
-
Returns number
isPaused
-
Returns boolean
listenerCount
-
Parameters
-
type: string | symbol
Returns number
-
listeners
-
Parameters
-
event: string | symbol
Returns Function[]
-
on
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
once
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
pause
-
Returns this
pipe
-
Type parameters
Parameters
-
destination: T
-
Optional options: object
-
Optional end?: boolean
-
Returns T
-
prependListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
prependOnceListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
read
-
Parameters
-
Optional size: number
Returns string | Buffer
-
removeAllListeners
-
Parameters
-
Optional event: string | symbol
Returns this
-
removeListener
-
Parameters
-
event: string | symbol
-
listener: Function
Returns this
-
resume
-
Returns this
setEncoding
-
Parameters
-
encoding: string | null
Returns void
-
setMaxListeners
-
Parameters
-
n: number
Returns this
-
unpipe
-
Type parameters
Parameters
-
Optional destination: T
Returns void
-
unshift
-
Parameters
-
chunk: string
Returns void
-
-
Parameters
-
chunk: Buffer
Returns void
-
wrap
-
Parameters
-
oldStream: ReadableStream
Returns ReadableStream
-
Generated using TypeDoc