Поделиться через


WritableStream interface

Extends

Свойства

writable

Методы

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

Наследуемые методы

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)

Сведения о свойстве

writable

writable: boolean

Значение свойства

boolean

Сведения о методе

end(Buffer, Function)

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

Параметры

buffer

Buffer

cb

Function

end(Function)

function end(cb?: Function)

Параметры

cb

Function

end(string, Function)

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

Параметры

str

string

cb

Function

end(string, string, Function)

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

Параметры

str

string

encoding

string

cb

Function

write(Buffer | string, Function)

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

Параметры

buffer

Buffer | string

cb

Function

Возвращаемое значение

boolean

write(string, string, Function)

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

Параметры

str

string

encoding

string

cb

Function

Возвращаемое значение

boolean

Сведения о наследуемом методе

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

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

Параметры

event

string | symbol

listener

(args: any[]) => void

Возвращаемое значение

this

унаследован отIEventEmitter.addListener

emit(string | symbol, any[])

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

Параметры

event

string | symbol

args

any[]

Возвращаемое значение

boolean

наследуется отIEventEmitter.emit

eventNames()

function eventNames(): Array<string | symbol>

Возвращаемое значение

Array<string | symbol>

наследуется отIEventEmitter.eventNames

getMaxListeners()

function getMaxListeners(): number

Возвращаемое значение

number

унаследовано отIEventEmitter.getMaxListeners

listenerCount(string | symbol)

function listenerCount(type: string | symbol): number

Параметры

type

string | symbol

Возвращаемое значение

number

унаследовано отIEventEmitter.listenerCount

listeners(string | symbol)

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

Параметры

event

string | symbol

Возвращаемое значение

Function[]

унаследовано отIEventEmitter.listeners

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

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

Параметры

event

string | symbol

listener

(args: any[]) => void

Возвращаемое значение

this

унаследовано отIEventEmitter.off

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

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

Параметры

event

string | symbol

listener

(args: any[]) => void

Возвращаемое значение

this

унаследован отIEventEmitter.on

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

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

Параметры

event

string | symbol

listener

(args: any[]) => void

Возвращаемое значение

this

унаследован отIEventEmitter.один раз

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

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

Параметры

event

string | symbol

listener

(args: any[]) => void

Возвращаемое значение

this

унаследован отIEventEmitter.prependListener

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

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

Параметры

event

string | symbol

listener

(args: any[]) => void

Возвращаемое значение

this

унаследован отIEventEmitter.prependOnceListener

rawListeners(string | symbol)

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

Параметры

event

string | symbol

Возвращаемое значение

Function[]

унаследовано отIEventEmitter.rawListeners

removeAllListeners(string | symbol)

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

Параметры

event

string | symbol

Возвращаемое значение

this

наследуется отIEventEmitter.removeAllListeners

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

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

Параметры

event

string | symbol

listener

(args: any[]) => void

Возвращаемое значение

this

унаследован отIEventEmitter.removeListener

setMaxListeners(number)

function setMaxListeners(n: number): this

Параметры

n

number

Возвращаемое значение

this

наследуется отIEventEmitter.setMaxListeners