@mathjax/src
    Preparing search index...

    Type Alias ADD_MATHJAX<T>

    ADD_MATHJAX: T extends {
        config?: { options?: any };
        startup: { document: any };
    }
        ? {
            startup: {
                mathjax: Omit<typeof mathjax, "document"> & {
                    document: (
                        doc: any,
                        options: Partial<(...)[(...)]["options"]>,
                    ) => T["startup"]["document"];
                };
            } & Omit<T["startup"], "mathjax">;
        } & Omit<T, "startup">
        : T

    Add types for the MathJax.startup.mathjax.document function so its options are checked, and its output reflects the type of the document created by the loaded components.

    Type Parameters

    • T

      The typ eobject to modify