Skip to main content
Module

x/ts_morph/mod.ts>ExportDeclaration#insertNamedExports

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method ExportDeclaration.prototype.insertNamedExports
import { ExportDeclaration } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Inserts named exports into the export declaration.

Parameters

index: number
  • Child index to insert at.
namedExports: ReadonlyArray<OptionalKind<ExportSpecifierStructure> | string | WriterFunction> | WriterFunction
  • Structures, names, or writer funciton to write the named exports.