WritableStream interface

Extends

Properties

writable

Methods

end(Buffer, Function)
end(Function)
end(string, Function)
end(string, string, Function)
write(Buffer | string, Function)
write(string, string, Function)

Inherited Methods

addListener(string | symbol, (args: any[]) => void)
emit(string | symbol, any[])
eventNames()
getMaxListeners()
listenerCount(string | symbol)
listeners(string | symbol)
off(string | symbol, (args: any[]) => void)
on(string | symbol, (args: any[]) => void)
once(string | symbol, (args: any[]) => void)
prependListener(string | symbol, (args: any[]) => void)
prependOnceListener(string | symbol, (args: any[]) => void)
rawListeners(string | symbol)
removeAllListeners(string | symbol)
removeListener(string | symbol, (args: any[]) => void)
setMaxListeners(number)

Property Details

writable

writable: boolean

Property Value

boolean

Method Details

end(Buffer, Function)

function end(buffer: Buffer, cb?: Function)

Parameters

buffer

Buffer

cb

Function

end(Function)

function end(cb?: Function)

Parameters

cb

Function

end(string, Function)

function end(str: string, cb?: Function)

Parameters

str

string

cb

Function

end(string, string, Function)

function end(str: string, encoding?: string, cb?: Function)

Parameters

str

string

encoding

string

cb

Function

write(Buffer | string, Function)

function write(buffer: Buffer | string, cb?: Function): boolean

Parameters

buffer

Buffer | string

cb

Function

Returns

boolean

write(string, string, Function)

function write(str: string, encoding?: string, cb?: Function): boolean

Parameters

str

string

encoding

string

cb

Function

Returns

boolean

Inherited Method Details

addListener(string | symbol, (args: any[]) => void)

function addListener(event: string | symbol, listener: (args: any[]) => void): this

Parameters

event

string | symbol

listener

(args: any[]) => void

Returns

this

Inherited From IEventEmitter.addListener

emit(string | symbol, any[])

function emit(event: string | symbol, args: any[]): boolean

Parameters

event

string | symbol

args

any[]

Returns

boolean

Inherited From IEventEmitter.emit

eventNames()

function eventNames(): Array<string | symbol>

Returns

Array<string | symbol>

Inherited From IEventEmitter.eventNames

getMaxListeners()

function getMaxListeners(): number

Returns

number

Inherited From IEventEmitter.getMaxListeners

listenerCount(string | symbol)

function listenerCount(type: string | symbol): number

Parameters

type

string | symbol

Returns

number

Inherited From IEventEmitter.listenerCount

listeners(string | symbol)

function listeners(event: string | symbol): Function[]

Parameters

event

string | symbol

Returns

Function[]

Inherited From IEventEmitter.listeners

off(string | symbol, (args: any[]) => void)

function off(event: string | symbol, listener: (args: any[]) => void): this

Parameters

event

string | symbol

listener

(args: any[]) => void

Returns

this

Inherited From IEventEmitter.off

on(string | symbol, (args: any[]) => void)

function on(event: string | symbol, listener: (args: any[]) => void): this

Parameters

event

string | symbol

listener

(args: any[]) => void

Returns

this

Inherited From IEventEmitter.on

once(string | symbol, (args: any[]) => void)

function once(event: string | symbol, listener: (args: any[]) => void): this

Parameters

event

string | symbol

listener

(args: any[]) => void

Returns

this

Inherited From IEventEmitter.once

prependListener(string | symbol, (args: any[]) => void)

function prependListener(event: string | symbol, listener: (args: any[]) => void): this

Parameters

event

string | symbol

listener

(args: any[]) => void

Returns

this

Inherited From IEventEmitter.prependListener

prependOnceListener(string | symbol, (args: any[]) => void)

function prependOnceListener(event: string | symbol, listener: (args: any[]) => void): this

Parameters

event

string | symbol

listener

(args: any[]) => void

Returns

this

Inherited From IEventEmitter.prependOnceListener

rawListeners(string | symbol)

function rawListeners(event: string | symbol): Function[]

Parameters

event

string | symbol

Returns

Function[]

Inherited From IEventEmitter.rawListeners

removeAllListeners(string | symbol)

function removeAllListeners(event?: string | symbol): this

Parameters

event

string | symbol

Returns

this

Inherited From IEventEmitter.removeAllListeners

removeListener(string | symbol, (args: any[]) => void)

function removeListener(event: string | symbol, listener: (args: any[]) => void): this

Parameters

event

string | symbol

listener

(args: any[]) => void

Returns

this

Inherited From IEventEmitter.removeListener

setMaxListeners(number)

function setMaxListeners(n: number): this

Parameters

n

number

Returns

this

Inherited From IEventEmitter.setMaxListeners