Flattened type definitions.

interface FlatDts {
    diagnostics: readonly Diagnostic[];
    files: readonly File[];
    formatDiagnostics(): string;
    writeOut(rootDir: string): Promise<void>;
}

Properties

diagnostics: readonly Diagnostic[]

Emission diagnostics.

files: readonly File[]

An array of emitted .d.ts files.

May be empty when emission failed.

Methods

  • Formats emission diagnostics.

    Returns string

    A string containing formatted diagnostic messages.

  • Writes all type definition files.

    Parameters

    • rootDir: string

      A root directory to place .d.ts files to. Defaults to working directory.

    Returns Promise<void>

    A promise resolved when all files written.