docx
    Preparing search index...

    Type Alias PatchedTemplate

    A template once patchDocument has patched it, as a TemplatePageNumberEstimator reads it.

    type PatchedTemplate = {
        parts: ReadonlyMap<string, Element>;
    }
    Index
    parts: ReadonlyMap<string, Element>

    Each XML part of the template's package, by its path in the package, such as "word/document.xml". Each is parsed as patchDocument parses it, with xml-js's xml2js, not compact, and keeping the spaces between elements (captureSpacesBetweenElements), as the spaces in a text element are its text