Trevixal API
    Preparing search index...

    Interface UploadContext

    A file being uploaded, with progress and cancellation.

    interface UploadContext {
        onProgress?: (fraction: number) => void;
        signal?: AbortSignal;
    }
    Index
    onProgress?: (fraction: number) => void

    Report 0-1 completion so the placeholder can render a progress bar.

    signal?: AbortSignal

    Aborts when the user cancels or the editor is destroyed.