Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElementImport

the element import ('import { xyz } from "./abc";')

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ElementImport(basePath: string, element: string, path: string): ElementImport
  • element import constructor

    Parameters

    • basePath: string

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

    • element: string

      the element that should be imported (the thing the the brackets)

    • path: string

      the path (realtive to the basepath) to import from

    Returns ElementImport

Properties

Private element

element: string

the element that should be imported (the thing the the brackets)

Protected path

path: string

the path to import from

Methods

getStatement

  • getStatement(variableName: string): string

Generated using TypeDoc