Skip to main content
Module

x/ts_morph/mod.ts>ClassDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class ClassDeclaration
extends ClassDeclarationBase<ts.ClassDeclaration>
import { ClassDeclaration } from "https://deno.land/x/ts_morph@15.1.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(): NonNullable<NodeParentType<ts.ClassDeclaration>>

Gets the structure equivalent to this node.

set(structure: Partial<ClassDeclarationStructure>): this

Sets the node from a structure.