@mathjax/src
    Preparing search index...

    Variable LoaderConst

    Loader: {
        nestedLoads: Promise<any[]>[];
        pathFilters: FunctionList;
        versions: Map<string, string>;
        addPackageData(name: string, data: PackageConfig): void;
        checkVersion(name: string, version: string, _type?: string): boolean;
        defaultReady(): void;
        getRoot(): string;
        load(...names: string[]): Promise<any[]>;
        preLoaded(...names: string[]): void;
        ready(...names: string[]): Promise<string[]>;
        saveVersion(name: string): void;
    } = ...

    The implementation of the dynamic loader

    Type declaration

    • nestedLoads: Promise<any[]>[]

      Array of nested load promises so if component performs additional loads (like an output jax with an alternate font), then the outer load promises won't resolve until the inner ones are complete.

    • pathFilters: FunctionList

      The filters to use to modify the paths used to obtain the packages

    • versions: Map<string, string>

      The versions of all the loaded extensions.

    • addPackageData: function
      • Insert options into a package configuration

        Parameters

        • name: string

          The package whose configuration is being augmented

        • data: PackageConfig

          The extra configuraiton information to add

        Returns void

    • checkVersion: function
      • Check the version of an extension and report an error if not correct

        Parameters

        • name: string

          The name of the extension being checked

        • version: string

          The version of the extension to check

        • Optional_type: string

          The type of extension (future code may use this to check ranges of versions)

        Returns boolean

        True if there was a mismatch, false otherwise

    • defaultReady: function
      • The default function to perform when all the packages are loaded

        Returns void

    • getRoot: function
      • Get the root location for where the MathJax package files are found

        Returns string

        The root location (directory for node.js, URL for browser)

    • load: function
      • Load the named packages and return a promise that is resolved when they are all loaded

        Parameters

        • ...names: string[]

          The packages to load

        Returns Promise<any[]>

        A promise that resolves when all the named packages are ready

    • preLoaded: function
      • Indicate that the named packages are being loaded by hand (e.g., as part of a larger package).

        Parameters

        • ...names: string[]

          The packages to load

        Returns void

    • ready: function
      • Get a promise that is resolved when all the named packages have been loaded.

        Parameters

        • ...names: string[]

          The packages to wait for

        Returns Promise<string[]>

        A promise that resolves when all the named packages are ready

    • saveVersion: function
      • Set the version of an extension (used for combined components so they can be loaded)

        Parameters

        • name: string

          The name of the extension being checked

        Returns void