Module

x/ts_morph/ts_morph.d.ts>ClassStaticBlockDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class ClassStaticBlockDeclaration
extends ClassStaticBlockDeclarationBase<ts.ClassStaticBlockDeclaration>
import { ClassStaticBlockDeclaration } from "https://dotland.deno.dev/x/ts_morph@22.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(message?: string | (() => string)): 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.