Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Import

the base class for all imports

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Import(basePath: string, path: string): Import
  • import constructor

    Parameters

    • basePath: string

      the base path (insert __dirname here for the path to the current file)

    • path: string

      the path (realtive to the basepath) to import from

    Returns Import

Properties

Protected path

path: string

the path to import from

Methods

Abstract getStatement

  • getStatement(variableName: string): string
  • generate a statement

    Parameters

    • variableName: string

      the name of a variable where the imported value should be saved into

    Returns string

Generated using TypeDoc