@nextcloud/files
    Preparing search index...

    Interface WritableLike

    Minimal structural writable stream type, satisfied by node streams. Node-specific members are intentionally omitted to keep the shipped types platform-neutral.

    interface WritableLike {
        destroy(error?: Error): this;
        emit(event: string | symbol, ...args: any[]): boolean;
        end(callback?: () => void): this;
        on(event: string | symbol, listener: (...args: any[]) => void): this;
        once(event: string | symbol, listener: (...args: any[]) => void): this;
        write(
            chunk: any,
            callback?: (error: Error | null | undefined) => void,
        ): boolean;
    }
    Index
    • Parameters

      • Optionalerror: Error

      Returns this

    • Parameters

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

      Returns boolean

    • Parameters

      • Optionalcallback: () => void

      Returns this

    • Parameters

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

      Returns this

    • Parameters

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

      Returns this

    • Parameters

      • chunk: any
      • Optionalcallback: (error: Error | null | undefined) => void

      Returns boolean