import { type StatementedNode } from "https://dotland.deno.dev/x/ts_morph@18.0.0/mod.ts";
Methods
Gets the first statement that matches the provided condition or returns undefined if it doesn't exist.
Gets the first statement that matches the provided condition or returns undefined if it doesn't exist.
Gets the first statement that matches the provided syntax kind or returns undefined if it doesn't exist.
Gets the first statement that matches the provided syntax kind or throws if it doesn't exist.
Add statements.
Inserts statements at the specified index.
Adds an class declaration as a child.
Adds class declarations as a child.
Inserts an class declaration as a child.
Inserts class declarations as a child.
Gets a class.
Gets a class or throws if it doesn't exist.
Adds an enum declaration as a child.
Adds enum declarations as a child.
Inserts an enum declaration as a child.
Inserts enum declarations as a child.
Gets an enum.
Gets an enum or throws if it doesn't exist.
Adds a function declaration as a child.
Adds function declarations as a child.
Inserts an function declaration as a child.
Inserts function declarations as a child.
Gets a function.
Gets a function or throws if it doesn't exist.
Adds a interface declaration as a child.
Adds interface declarations as a child.
Inserts an interface declaration as a child.
Inserts interface declarations as a child.
Gets an interface.
Gets an interface or throws if it doesn't exist.
Gets an interface or throws if it doesn't exist.
Adds a module declaration as a child.
Adds module declarations as a child.
Inserts a module declaration as a child.
Inserts module declarations as children.
Gets a module declaration child by condition.
Gets a module declaration child by name or throws if it doesn't exist.
Gets a module declaration child by condition or throws if it doesn't exist.
Adds a type alias declaration as a child.
Adds type alias declarations as a child.
Inserts an type alias declaration as a child.
Inserts type alias declarations as a child.
Gets a type alias.
Gets a type alias or throws if it doesn't exist.
Gets a type alias or throws if it doesn't exist.
Adds a variable statement.
Adds variable statements.
Inserts a variable statement.
Inserts variable statements.
Gets a variable statement.
Gets a variable statement or throws if it doesn't exist.
Gets a variable statement or throws if it doesn't exist.
Gets all the variable declarations within the variable statement children.
Gets a variable declaration.
Gets a variable declaration or throws if it doesn't exist.
Gets a variable declaration or throws if it doesn't exist.
import { StatementedNode } from "https://dotland.deno.dev/x/ts_morph@18.0.0/mod.ts";