docx
    Preparing search index...

    Type Alias PatchedTemplate

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

    type PatchedTemplate = {
        binaryParts?: ReadonlyMap<string, Uint8Array>;
        importedDocuments?: ReadonlyMap<string, PatchedTemplate>;
        parts: ReadonlyMap<string, XmlElement>;
    }
    Index
    binaryParts?: ReadonlyMap<string, Uint8Array>

    Each of its other parts, such as its pictures and the fonts it embeds, by its path in the package, as bytes

    importedDocuments?: ReadonlyMap<string, PatchedTemplate>

    Each .docx the template imports (w:altChunk), which Word turns into paragraphs and tables of the template's own when it opens it, unzipped and read as the template is, by its path in the template's package

    parts: ReadonlyMap<string, XmlElement>

    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 parseXml keeping the text that is only whitespace (keepWhitespaceText), as the spaces in a text element are its text