SheetXL - v1.0.2
    Preparing search index...

    A kind whose implementation is loaded the first time a workbook needs it.

    MovableContentRegistry.register('map', { load: () => import('./MapContent'), select: (m) => m.createMap });
    
    interface Lazy<M = any> {
        load: () => Promise<M>;
        prefetch?: boolean;
        select?: (module: M) => Factory;
    }

    Type Parameters

    • M = any
    Index
    load: () => Promise<M>

    Imports the kind's module. It must resolve to the module itself, with the factory picked by select: after a failed fetch, the module is imported again without this loader. A load that fails is asked again the next time it is needed.

    prefetch?: boolean

    Whether the kind may be loaded ahead of use (LazyModules.prefetch in @sheetxl/utils).

    true
    
    select?: (module: M) => Factory

    Picks the factory from the module.

    the module itself, for a loader that resolves to the factory