Skip to main content
Module

x/ts_morph/ts_morph.d.ts>ExportDeclaration#addNamedExports

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

Adds named exports.

Parameters

namedExports: ReadonlyArray<OptionalKind<ExportSpecifierStructure> | string | WriterFunction> | WriterFunction
  • Structures, names, or writer function to write the named exports.