Skip to main content
Module

x/ts_morph/mod.ts>TypeAliasDeclaration

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

Methods

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

Gets the structure equivalent to this node.

set(structure: Partial<TypeAliasDeclarationStructure>): this

Sets the node from a structure.