Emitted .d.ts file.

The file is not actually written to the disk by File.writeOut call.

interface File {
    content: string;
    path: string;
    writeOut(path?: string): Promise<void>;
}

Properties

Methods

Properties

content: string

Emitted .d.ts file contents.

path: string

Emitted .d.ts file path.

Methods

  • Writes contents to this file.

    Creates the necessary directories.

    Parameters

    • Optionalpath: string

      Target file path. Defaults to path.

    Returns Promise<void>

    A promise resolved when file written.