Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "index"

Index

Type aliases

Constant

Constant: object

describes a contant value

Type declaration

  • name: string
  • value: string

File

File: object

a plan file that was generated

Type declaration

  • data: string
  • name: string

GeneratedResult

GeneratedResult: object

the result of generating dynamic code

Type declaration

  • code: string
  • constants: Array<Constant>
  • externalFiles: Array<File>
  • imports: Array<string>

Functions

generateFunctionExecution

generateImport

  • generates a result from an import

    Parameters

    • imp: Import

      the import specification (import all, import element, import default)

    Returns GeneratedResult

generateJson

  • generates a result from a json value

    Parameters

    • json: any

      the value that should be generated to code

    Returns GeneratedResult

generateLazyLoading

  • generates a result that lazy loades a value

    Parameters

    • result: GeneratedResult

      the value that should be lazy loaded

    • Optional filename: undefined | string

      an optional name for the file where the lazy loadable part is written to and later loaded from

    Returns GeneratedResult

generateShare

  • generates a result that shares a value (consider the result of a function, without a share, each time the result is referenced it would be reexecuted)

    Parameters

    Returns GeneratedResult

getFiles

  • transforms a generated result into files

    Parameters

    • result: GeneratedResult

      the result that should be transformed to files

    • Default value mailFilename: string = "index.ts"

      an optional name for the entry file

    Returns Array<File>

randomFileName

  • randomFileName(): string
  • creates a random globally unique filename

    Returns string

randomVarName

  • randomVarName(): string
  • creates a random globally unique variable name

    Returns string

Generated using TypeDoc