共用方式為


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.once

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