Skip to main content
Module

x/ts_morph/mod.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@15.1.0/mod.ts";

Adds named exports.

Parameters

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