interface WritableStream {
    writable: boolean;
    addListener(event, listener): WritableStream;
    emit(event, ...args): boolean;
    end(cb?): void;
    end(data, cb?): void;
    end(str, encoding?, cb?): void;
    eventNames(): (string | symbol)[];
    getMaxListeners(): number;
    listenerCount(type): number;
    listeners(event): Function[];
    off(event, listener): WritableStream;
    on(event, listener): WritableStream;
    once(event, listener): WritableStream;
    prependListener(event, listener): WritableStream;
    prependOnceListener(event, listener): WritableStream;
    rawListeners(event): Function[];
    removeAllListeners(event?): WritableStream;
    removeListener(event, listener): WritableStream;
    setMaxListeners(n): WritableStream;
    write(buffer, cb?): boolean;
    write(str, encoding?, cb?): boolean;
}

Hierarchy

Implemented by

Properties

writable: boolean

Methods

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

  • Parameters

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

    Returns boolean

  • 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

  • Returns (string | symbol)[]

  • Returns number

  • Parameters

    • type: string | symbol

    Returns number

  • Parameters

    • event: string | symbol

    Returns Function[]

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

  • Parameters

    • event: string | symbol

    Returns Function[]

  • Parameters

    • Optional event: string | symbol

    Returns WritableStream

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns WritableStream

  • Parameters

    • n: number

    Returns WritableStream

  • Parameters

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

          • Optional err: null | Error

          Returns void

    Returns boolean

  • Parameters

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

          • Optional err: null | Error

          Returns void

    Returns boolean