ScannedExample

class
class ScannedExample<TMetadata>

An example after processing by the scanner.
Includes computed fields like displayPath that are added during scanning.

PROPERTIES

NAMETYPEDESCRIPTION
readonly description?stringOptional description
readonly displayPathstringPath relative to the config/scan root, useful for display in errors and snapshots (avoids machine-specific absolute paths).
readonly extractorNamestringWhich extractor produced this example
readonly filesExampleFile[]All files belonging to this example
readonly idstringUnique identifier for this example
readonly metadataTMetadataAdditional metadata (loosely typed unless user provides schema)
readonly rootPathstringAbsolute path to the example root (file or directory)
readonly titlestringHuman-readable title

METHODS

file(relativePath: string): ExampleFile

Find a file by its path relative to the example root.