import { ExportDeclaration } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";
Methods
Adds a named export.
Adds named exports.
Gets the assert clause or returns undefined if it doesn't exist.
Gets the module specifier or undefined if it doesn't exist.
Gets the source file referenced in the module specifier.
Gets the source file referenced in the module specifier or throws if it can't find it or it doesn't exist.
Gets the module specifier value or undefined if it doesn't exist.
Gets the namespace export or returns undefined if it doesn't exist. (ex. * as ns
, but not *
).
Gets the namespace export or throws if it doesn't exist. (ex. * as ns
, but not *
)
Inserts a named export.
Inserts named exports into the export declaration.
Sets the elements in an assert clause.
Changes the export declaration to namespace export. Removes all the named exports.