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
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
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>
getMaxListeners()
listenerCount(string | symbol)
function listenerCount(type: string | symbol): number
Parámetros
- type
-
string | symbol
Devoluciones
number
listeners(string | symbol)
function listeners(event: string | symbol): Function[]
Parámetros
- event
-
string | symbol
Devoluciones
Function[]
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
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
rawListeners(string | symbol)
function rawListeners(event: string | symbol): Function[]
Parámetros
- event
-
string | symbol
Devoluciones
Function[]
removeAllListeners(string | symbol)
function removeAllListeners(event?: string | symbol): this
Parámetros
- event
-
string | symbol
Devoluciones
this
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