SheetXL - v1.0.2
    Preparing search index...

    Interface LazyModuleOptions<T, M>

    Options for defineLazyModule.

    interface LazyModuleOptions<T = any, M = T> {
        prefetch?: boolean | (() => boolean);
        retries?: number;
        retryDelay?: number;
        select?: (module: T) => M;
    }

    Type Parameters

    • T = any
    • M = T
    Index
    prefetch?: boolean | (() => boolean)

    Whether LazyModules.prefetch may load the module ahead of use. Use false for modules that are large or fetched from a third party, or a function for one that is wanted only some of the time; it is asked at each prefetch.

    true
    
    retries?: number

    Additional attempts after a failed load before the failure is reported.

    1
    
    retryDelay?: number

    Milliseconds to wait before each additional attempt.

    250
    
    select?: (module: T) => M

    Picks what LazyModule.load answers from the imported module, such as one of its exports. Pick here rather than in the loader: a retry imports the module again without the loader.

    the module itself