Trilium Backend API
    Preparing search index...

    Interface ReadableOptions<T>

    interface ReadableOptions<T extends Stream.Readable = Stream.Readable> {
        autoDestroy?: boolean;
        construct?: (this: T, callback: (error?: Error) => void) => void;
        destroy?: (
            this: T,
            error: Error,
            callback: (error?: Error) => void,
        ) => void;
        emitClose?: boolean;
        encoding?: BufferEncoding;
        highWaterMark?: number;
        objectMode?: boolean;
        read?: (this: T, size: number) => void;
        signal?: AbortSignal;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    autoDestroy?: boolean
    construct?: (this: T, callback: (error?: Error) => void) => void
    destroy?: (this: T, error: Error, callback: (error?: Error) => void) => void
    emitClose?: boolean
    encoding?: BufferEncoding
    highWaterMark?: number
    objectMode?: boolean
    read?: (this: T, size: number) => void
    signal?: AbortSignal

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