Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...
    interface ScheduleSaveParams {
        root: FileSystemDirectoryHandle;
        getSnapshot: () => MetadataSnapshot;
        delayMs: number;
        maxWaitMs?: number;
        leadingDelayMs?: number;
        onError: (error: unknown) => void;
    }
    Index
    root: FileSystemDirectoryHandle
    getSnapshot: () => MetadataSnapshot
    delayMs: number

    Trailing debounce: quiet time after the last call before writing.

    maxWaitMs?: number

    Ceiling on how long a continuous stream of calls may postpone the write, measured from the first call since the last write. Omitted = unbounded (pure trailing debounce).

    leadingDelayMs?: number

    Leading edge: the first call after a quiet period (no save started for delayMs) writes within this many ms, and later calls in the same window cannot push that write back. Omitted = no leading edge.

    onError: (error: unknown) => void