Module

x/ts_morph/mod.ts>ConstructorDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class ConstructorDeclaration
extends ConstructorDeclarationBase<ts.ConstructorDeclaration>
import { ConstructorDeclaration } from "https://dotland.deno.dev/x/ts_morph@20.0.0/mod.ts";

Methods

Add constructor overloads.

getParent(): NodeParentType<ts.ConstructorDeclaration>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.ConstructorDeclaration>>

Inserts a constructor overload.

Inserts constructor overloads.

set(structure: Partial<ConstructorDeclarationStructure>): this

Sets the node from a structure.