import { type ModuledNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";
Methods
Adds an import.
Adds imports.
Insert an import.
Inserts imports.
Gets the first import declaration that matches a condition, or undefined if it doesn't exist.
Gets the first import declaration that matches a module specifier, or undefined if it doesn't exist.
Gets the first import declaration that matches a condition, or throws if it doesn't exist.
Gets the first import declaration that matches a module specifier, or throws if it doesn't exist.
Add export declarations.
Add export declarations.
Insert an export declaration.
Insert export declarations.
Gets the first export declaration that matches a module specifier, or undefined if it doesn't exist.
Gets the first export declaration that matches a condition, or throws if it doesn't exist.
Gets the first export declaration that matches a module specifier, or throws if it doesn't exist.
Add export assignments.
Add export assignments.
Insert an export assignment.
Insert export assignments into a file.
Gets the first export assignment that matches a condition, or undefined if it doesn't exist.
Gets the first export assignment that matches a condition, or throws if it doesn't exist.
Gets the default export symbol or throws if it doesn't exist.
Gets all the declarations that are exported from the module.
The key is the name it's exported on and the value is the array of declarations for that name.
This will include declarations that are transitively exported from other modules. If you mean to get the export
declarations then use .getExportDeclarations()
.
import { ModuledNode } from "https://dotland.deno.dev/x/ts_morph@20.0.0/ts_morph.d.ts";