Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Generator

Logic for generating aggregated typings for NPM module

Hierarchy

  • Cli
    • Generator

Index

Constructors

Methods

Constructors

  • new Generator(injectedArguments?: INpmDtsArgs, enableLog?: boolean, throwErrors?: boolean): Generator
  • Auto-launches generation based on command line arguments

    Parameters

    • Optional injectedArguments: INpmDtsArgs

      generation arguments (same as CLI)

    • enableLog: boolean = null

      enables logging when true, null allows application to decide

    • throwErrors: boolean = false

      makes generation throw errors when true

    Returns Generator

Methods

  • generate(): Promise<void>
  • Executes generation of an aggregated dts file

    Returns Promise<void>