interface WritableOptions<T> {
    signal?: AbortSignal;
    emitClose?: boolean;
    highWaterMark?: number;
    objectMode?: boolean;
    construct?: ((this: T, callback: ((error?: null | Error) => void)) => void);
    destroy?: ((this: T, error: null | Error, callback: ((error?: null | Error) => void)) => void);
    autoDestroy?: boolean;
    decodeStrings?: boolean;
    defaultEncoding?: BufferEncoding;
    write?: ((this: T, chunk: any, encoding: BufferEncoding, callback: ((error?: null | Error) => void)) => void);
    writev?: ((this: T, chunks: {
        chunk: any;
        encoding: BufferEncoding;
    }[], callback: ((error?: null | Error) => void)) => void);
    final?: ((this: T, callback: ((error?: null | Error) => void)) => void);
}

Type Parameters

Hierarchy (view full)

Properties

signal?: AbortSignal

When provided the corresponding AbortController can be used to cancel an asynchronous action.

emitClose?: boolean
highWaterMark?: number
objectMode?: boolean
construct?: ((this: T, callback: ((error?: null | Error) => void)) => void)
destroy?: ((this: T, error: null | Error, callback: ((error?: null | Error) => void)) => void)
autoDestroy?: boolean
decodeStrings?: boolean
defaultEncoding?: BufferEncoding
write?: ((this: T, chunk: any, encoding: BufferEncoding, callback: ((error?: null | Error) => void)) => void)
writev?: ((this: T, chunks: {
    chunk: any;
    encoding: BufferEncoding;
}[], callback: ((error?: null | Error) => void)) => void)
final?: ((this: T, callback: ((error?: null | Error) => void)) => void)