Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WritableStream

Hierarchy

Index

Properties

writable

writable: boolean

Methods

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): WritableStream
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

end

  • end(cb?: () => void): void
  • end(data: string | Uint8Array, cb?: () => void): void
  • end(str: string, encoding?: string, cb?: () => void): void
  • Parameters

    • Optional cb: () => void
        • (): void
        • Returns void

    Returns void

  • Parameters

    • data: string | Uint8Array
    • Optional cb: () => void
        • (): void
        • Returns void

    Returns void

  • Parameters

    • str: string
    • Optional encoding: string
    • Optional cb: () => void
        • (): void
        • Returns void

    Returns void

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): WritableStream
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

on

  • on(event: string | symbol, listener: (...args: any[]) => void): WritableStream
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

once

  • once(event: string | symbol, listener: (...args: any[]) => void): WritableStream
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): WritableStream
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): WritableStream
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): WritableStream
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

setMaxListeners

write

  • write(buffer: string | Uint8Array, cb?: (err?: null | Error) => void): boolean
  • write(str: string, encoding?: string, cb?: (err?: null | Error) => void): boolean
  • Parameters

    • buffer: string | Uint8Array
    • Optional cb: (err?: null | Error) => void
        • (err?: null | Error): void
        • Parameters

          • Optional err: null | Error

          Returns void

    Returns boolean

  • Parameters

    • str: string
    • Optional encoding: string
    • Optional cb: (err?: null | Error) => void
        • (err?: null | Error): void
        • Parameters

          • Optional err: null | Error

          Returns void

    Returns boolean

Generated using TypeDoc