Provides management of execution of creating a ts-morph project and coordinating postprocessing ProcessorFunction functions acting on the ts-morph SourceFile. The input filepath should be a bundled Typescript declaration file. Any postprocessing is automatically saved to the same file.

Constructors

Methods

Constructors

Methods

  • Performs postprocessing on a given Typescript declaration file in place. You may provide an alternate output filepath to not overwrite the source file.

    Parameters

    • options: {
          filepath: string;
          output?: string;
          processors: Iterable<ProcessorFunction>;
      }

      Options

      • filepath: string

        Source DTS file to process.

      • Optional output?: string

        Alternate output filepath for testing.

      • processors: Iterable<ProcessorFunction>

        List of processor functions.

    Returns void