Compartir a través de


WritableStream interface

Extends

Propiedades

writable

Métodos

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

Métodos heredados

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)

Detalles de las propiedades

writable

writable: boolean

Valor de propiedad

boolean

Detalles del método

end(Buffer, Function)

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

Parámetros

buffer

Buffer

cb

Function

end(Function)

function end(cb?: Function)

Parámetros

cb

Function

end(string, Function)

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

Parámetros

str

string

cb

Function

end(string, string, Function)

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

Parámetros

str

string

encoding

string

cb

Function

write(Buffer | string, Function)

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

Parámetros

buffer

Buffer | string

cb

Function

Devoluciones

boolean

write(string, string, Function)

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

Parámetros

str

string

encoding

string

cb

Function

Devoluciones

boolean

Detalles de los métodos heredados

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

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

Parámetros

event

string | symbol

listener

(args: any[]) => void

Devoluciones

this

heredado de IEventEmitter.addListener

emit(string | symbol, any[])

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

Parámetros

event

string | symbol

args

any[]

Devoluciones

boolean

heredado deIEventEmitter.emit

eventNames()

function eventNames(): Array<string | symbol>

Devoluciones

Array<string | symbol>

heredado de IEventEmitter.eventNames

getMaxListeners()

function getMaxListeners(): number

Devoluciones

number

heredar de IEventEmitter.getMaxListeners

listenerCount(string | symbol)

function listenerCount(type: string | symbol): number

Parámetros

type

string | symbol

Devoluciones

number

se hereda de IEventEmitter.listenerCount

listeners(string | symbol)

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

Parámetros

event

string | symbol

Devoluciones

Function[]

se hereda de IEventEmitter.listeners

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

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

Parámetros

event

string | symbol

listener

(args: any[]) => void

Devoluciones

this

heredado deIEventEmitter.off

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

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

Parámetros

event

string | symbol

listener

(args: any[]) => void

Devoluciones

this

heredado deIEventEmitter.on

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

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

Parámetros

event

string | symbol

listener

(args: any[]) => void

Devoluciones

this

heredado deIEventEmitter.once

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

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

Parámetros

event

string | symbol

listener

(args: any[]) => void

Devoluciones

this

heredado de IEventEmitter.prependListener

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

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

Parámetros

event

string | symbol

listener

(args: any[]) => void

Devoluciones

this

heredado de IEventEmitter.prependOnceListener

rawListeners(string | symbol)

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

Parámetros

event

string | symbol

Devoluciones

Function[]

heredado de IEventEmitter.rawListeners

removeAllListeners(string | symbol)

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

Parámetros

event

string | symbol

Devoluciones

this

heredado de IEventEmitter.removeAllListeners

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

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

Parámetros

event

string | symbol

listener

(args: any[]) => void

Devoluciones

this

Se hereda de IEventEmitter.removeListener

setMaxListeners(number)

function setMaxListeners(n: number): this

Parámetros

n

number

Devoluciones

this

heredado de IEventEmitter.setMaxListeners