WritableStream interface
- Extends
Propriétés
writable |
Méthodes
end(Buffer, Function) | |
end(Function) | |
end(string, Function) | |
end(string, string, Function) | |
write(Buffer | string, Function) | |
write(string, string, Function) |
Méthodes héritées
Détails de la propriété
writable
writable: boolean
Valeur de propriété
boolean
Détails de la méthode
end(Buffer, Function)
function end(buffer: Buffer, cb?: Function)
Paramètres
- buffer
-
Buffer
- cb
-
Function
end(Function)
function end(cb?: Function)
Paramètres
- cb
-
Function
end(string, Function)
function end(str: string, cb?: Function)
Paramètres
- str
-
string
- cb
-
Function
end(string, string, Function)
function end(str: string, encoding?: string, cb?: Function)
Paramètres
- str
-
string
- encoding
-
string
- cb
-
Function
write(Buffer | string, Function)
function write(buffer: Buffer | string, cb?: Function): boolean
Paramètres
- buffer
-
Buffer | string
- cb
-
Function
Retours
boolean
write(string, string, Function)
function write(str: string, encoding?: string, cb?: Function): boolean
Paramètres
- str
-
string
- encoding
-
string
- cb
-
Function
Retours
boolean
Détails de la méthode héritée
addListener(string | symbol, (args: any[]) => void)
function addListener(event: string | symbol, listener: (args: any[]) => void): this
Paramètres
- event
-
string | symbol
- listener
-
(args: any[]) => void
Retours
this
héritée deIEventEmitter.addListener
emit(string | symbol, any[])
function emit(event: string | symbol, args: any[]): boolean
Paramètres
- event
-
string | symbol
- args
-
any[]
Retours
boolean
héritée deIEventEmitter.emit
eventNames()
function eventNames(): Array<string | symbol>
Retours
Array<string | symbol>
héritée deIEventEmitter.eventNames
getMaxListeners()
listenerCount(string | symbol)
function listenerCount(type: string | symbol): number
Paramètres
- type
-
string | symbol
Retours
number
héritée deIEventEmitter.listenerCount
listeners(string | symbol)
function listeners(event: string | symbol): Function[]
Paramètres
- event
-
string | symbol
Retours
Function[]
hérité deIEventEmitter.listeners
off(string | symbol, (args: any[]) => void)
function off(event: string | symbol, listener: (args: any[]) => void): this
Paramètres
- event
-
string | symbol
- listener
-
(args: any[]) => void
Retours
this
héritée deIEventEmitter.off
on(string | symbol, (args: any[]) => void)
function on(event: string | symbol, listener: (args: any[]) => void): this
Paramètres
- event
-
string | symbol
- listener
-
(args: any[]) => void
Retours
this
héritée deIEventEmitter.on
once(string | symbol, (args: any[]) => void)
function once(event: string | symbol, listener: (args: any[]) => void): this
Paramètres
- event
-
string | symbol
- listener
-
(args: any[]) => void
Retours
this
héritée deIEventEmitter.once
prependListener(string | symbol, (args: any[]) => void)
function prependListener(event: string | symbol, listener: (args: any[]) => void): this
Paramètres
- event
-
string | symbol
- listener
-
(args: any[]) => void
Retours
this
héritée deIEventEmitter.prependListener
prependOnceListener(string | symbol, (args: any[]) => void)
function prependOnceListener(event: string | symbol, listener: (args: any[]) => void): this
Paramètres
- event
-
string | symbol
- listener
-
(args: any[]) => void
Retours
this
héritée deIEventEmitter.prependOnceListener
rawListeners(string | symbol)
function rawListeners(event: string | symbol): Function[]
Paramètres
- event
-
string | symbol
Retours
Function[]
héritée deIEventEmitter.rawListeners
removeAllListeners(string | symbol)
function removeAllListeners(event?: string | symbol): this
Paramètres
- event
-
string | symbol
Retours
this
héritée deIEventEmitter.removeAllListeners
removeListener(string | symbol, (args: any[]) => void)
function removeListener(event: string | symbol, listener: (args: any[]) => void): this
Paramètres
- event
-
string | symbol
- listener
-
(args: any[]) => void
Retours
this
héritée deIEventEmitter.removeListener
setMaxListeners(number)
function setMaxListeners(n: number): this
Paramètres
- n
-
number
Retours
this
héritée deIEventEmitter.setMaxListeners