docx-validate
    Preparing search index...

    Interface PackOptions

    interface PackOptions {
        author?: string;
        inferAuthorFunc?: (
            unpackedDir: string,
            originalDocx: string,
        ) => string | Promise<string>;
        original?: string;
        validate?: boolean;
    }
    Index
    author?: string

    Author whose tracked changes to validate against original. Required when validate !== false and original is provided, unless inferAuthorFunc is supplied. Used as the fallback when inferAuthor cannot deduce a single new author from the diff.

    inferAuthorFunc?: (
        unpackedDir: string,
        originalDocx: string,
    ) => string | Promise<string>

    Custom author-inference callback. When provided, replaces the default inferAuthor. Receives (unpackedDir, originalDocx) and returns the author string.

    original?: string
    validate?: boolean