banira
    Preparing search index...

    Class ResultAnalyzer

    Analyzes compilation results and provides diagnostic information

    This class processes TypeScript compilation results and provides methods to analyze diagnostics, access compiler options, and retrieve source and output files.

    const compiler = new Compiler(['src/file.ts'], options);
    const result = compiler.emit();
    const analyzer = new ResultAnalyzer(result);
    const diagnostics = analyzer.diag();

    if (diagnostics.hasErrors) {
    console.error(diagnostics.formatted);
    }
    Index

    Constructors

    Accessors

    • get outputFiles(): string[]

      Gets the paths of all emitted (output) files

      Returns string[]

      Array of output file paths

    Methods