Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WritableStream

Hierarchy

Index

Properties

writable: boolean

Methods

  • 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(event: string | symbol, ...args: any[]): boolean
  • Parameters

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

    Returns boolean

  • end(cb?: (() => void)): void
  • end(data: string | Uint8Array, cb?: (() => void)): void
  • end(str: string, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex", 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: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"
    • Optional cb: (() => void)
        • (): void
        • Returns void

    Returns void

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

  • getMaxListeners(): number
  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

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

    • event: string | symbol

    Returns Function[]

  • 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(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(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(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(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(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

  • 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

  • write(buffer: string | Uint8Array, cb?: ((err?: null | Error) => void)): boolean
  • write(str: string, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex", 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: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"
    • Optional cb: ((err?: null | Error) => void)
        • (err?: null | Error): void
        • Parameters

          • Optional err: null | Error

          Returns void

    Returns boolean

Generated using TypeDoc