Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/ts_morph.d.ts>ClassStaticBlockDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class ClassStaticBlockDeclaration
extends ClassStaticBlockDeclarationBase<ts.ClassStaticBlockDeclaration>
import { ClassStaticBlockDeclaration } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";

Methods

getName(): "static"

Method that exists for the sake of making code compile that looks for the name of static members. This always returns "static".

getParent(): NodeParentType<ts.ClassStaticBlockDeclaration>
getParentOrThrow(): NonNullable<NodeParentType<ts.ClassStaticBlockDeclaration>>

Gets the structure equivalent to this node.

isStatic(): true

Method that exists for the sake of making code compile that looks for this method on class members. This always returns true.

set(structure: Partial<ClassStaticBlockDeclarationStructure>): this

Sets the node from a structure.