banira
    Preparing search index...

    Interface CompilerResult

    Result of a TypeScript compilation process

    CompilerResult

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

    if (result.diagnostics.length > 0) {
    console.log('Compilation had diagnostics:', result.diagnostics);
    }
    interface CompilerResult {
        diagnostics: readonly Diagnostic[];
        emitResult: EmitResult;
        preEmitDiagnostics: readonly Diagnostic[];
        program: Program;
    }
    Index

    Properties

    diagnostics: readonly Diagnostic[]

    Array of diagnostics from the compilation process

    emitResult: EmitResult

    The result of the emit process, including any diagnostics

    preEmitDiagnostics: readonly Diagnostic[]

    Array of diagnostics collected before emit

    program: Program

    The TypeScript Program instance used for compilation