Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "node_modules/@types/babel__generator/index.d"

Index

Functions

generate

  • Turns an AST into code, maintaining sourcemaps, user preferences, and valid output.

    Parameters

    • ast: t.Node

      the abstract syntax tree from which to generate output code.

    • Optional opts: GeneratorOptions

      used for specifying options for code generation.

    • Optional code: string | object

      the original source code, used for source maps.

    Returns GeneratorResult

    • an object containing the output code and source map.

Generated using TypeDoc