SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface LazyModule<M>

    A module that is loaded on first use.

    interface LazyModule<M> {
        key: string;
        prefetch: boolean;
        tier: LazyModuleTier;
        load(): Promise<M>;
        peek(): M | undefined;
    }

    Type Parameters

    • M
    Index
    key: string

    Unique key, for example 'studio:sortDialog'.

    prefetch: boolean

    Whether the module may be loaded ahead of use.

    How likely the module is to be needed.

    • Loads the module, or returns it if it is already loaded.

      Returns Promise<M>

      Concurrent calls share one attempt. A failed attempt is not remembered, so calling again tries again. Rejects with a LazyLoadError.

    • The module if it has loaded, otherwise undefined.

      Returns M | undefined