Skip to main content
Module

x/ts_morph/mod.ts>ClassDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class ClassDeclaration
extends ClassDeclarationBase<ts.ClassDeclaration>
import { ClassDeclaration } from "https://deno.land/x/ts_morph@22.0.0/mod.ts";

Methods

Extracts an interface declaration structure from the class.

Extracts an interface declaration structure from the static part of the class.

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

Gets the structure equivalent to this node.

set(structure: Partial<ClassDeclarationStructure>): this

Sets the node from a structure.