Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...

    Interface Deferred<T>

    A promise plus the handles that settle it, for tests that order async steps explicitly (Promise.withResolvers is outside the ES2022 lib this package compiles against).

    interface Deferred<T> {
        promise: Promise<T>;
        resolve: (value: T) => void;
        reject: (reason?: unknown) => void;
    }

    Type Parameters

    • T
    Index
    promise: Promise<T>
    resolve: (value: T) => void
    reject: (reason?: unknown) => void