Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultImport

the default import ('import xyz from "./abc";')

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new DefaultImport(basePath: string, path: string): DefaultImport
  • 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 DefaultImport

Properties

Protected path

path: string

the path to import from

Methods

getStatement

  • getStatement(variableName: string): string

Generated using TypeDoc