epubcheck-ts
    Preparing search index...

    Interface ValidationContext

    Internal validation context passed through the validation pipeline

    interface ValidationContext {
        contentFeatures?: {
            hasAudio?: boolean;
            hasDictionary?: boolean;
            hasFigure?: boolean;
            hasIndex?: boolean;
            hasLOA?: boolean;
            hasLOI?: boolean;
            hasLOT?: boolean;
            hasLOV?: boolean;
            hasMicrodata?: boolean;
            hasPageBreak?: boolean;
            hasPageList?: boolean;
            hasRDFa?: boolean;
            hasTable?: boolean;
            hasVideo?: boolean;
        };
        data: Uint8Array;
        files: Map<string, Uint8Array<ArrayBufferLike>>;
        mediaActiveClass?: string;
        mediaPlaybackActiveClass?: string;
        messages: ValidationMessage[];
        ncxUid?: string;
        obfuscatedResources?: Set<string>;
        opfPath?: string;
        options: ResolvedEpubCheckOptions;
        overlayTextLinks?: {
            fragment?: string;
            location: EPUBLocation;
            targetResource: string;
        }[];
        packageDocument?: PackageDocument;
        referencedUndeclaredResources?: Set<string>;
        rootfiles: Rootfile[];
        tocLinks?: {
            fragment?: string;
            location: EPUBLocation;
            targetResource: string;
        }[];
        version: EPUBVersion;
    }
    Index

    Properties

    contentFeatures?: {
        hasAudio?: boolean;
        hasDictionary?: boolean;
        hasFigure?: boolean;
        hasIndex?: boolean;
        hasLOA?: boolean;
        hasLOI?: boolean;
        hasLOT?: boolean;
        hasLOV?: boolean;
        hasMicrodata?: boolean;
        hasPageBreak?: boolean;
        hasPageList?: boolean;
        hasRDFa?: boolean;
        hasTable?: boolean;
        hasVideo?: boolean;
    }

    Feature flags collected during content validation for cross-document checks

    data: Uint8Array

    EPUB file data

    files: Map<string, Uint8Array<ArrayBufferLike>>

    Files extracted from EPUB container

    mediaActiveClass?: string

    OPF media:active-class value (if declared)

    mediaPlaybackActiveClass?: string

    OPF media:playback-active-class value (if declared)

    messages: ValidationMessage[]

    Validation messages collected so far

    ncxUid?: string

    NCX UID for validation against OPF identifier

    obfuscatedResources?: Set<string>

    Resources marked with IDPF font obfuscation in encryption.xml

    opfPath?: string

    Path to the package document (OPF)

    Validation options

    overlayTextLinks?: {
        fragment?: string;
        location: EPUBLocation;
        targetResource: string;
    }[]

    Media overlay text link targets in order, for reading order validation (MED-015)

    packageDocument?: PackageDocument

    Parsed package document

    referencedUndeclaredResources?: Set<string>

    Resources referenced in content but not declared in manifest

    rootfiles: Rootfile[]

    Rootfiles found in container.xml

    tocLinks?: { fragment?: string; location: EPUBLocation; targetResource: string }[]

    TOC navigation link targets in order, for reading order validation (NAV-011)

    version: EPUBVersion

    Detected EPUB version