Module

x/ts_morph/mod.ts>HeritageClauseableNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface HeritageClauseableNode
import { type HeritageClauseableNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";

Methods

getHeritageClauses(): HeritageClause[]

Gets the heritage clauses of the node.

getHeritageClauseByKind(kind: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword): HeritageClause | undefined

Gets the heritage clause by kind.

getHeritageClauseByKindOrThrow(kind: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword): HeritageClause

Gets the heritage clause by kind or throws if it doesn't exist.

function HeritageClauseableNode
import { HeritageClauseableNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";

Type Parameters

T extends Constructor<HeritageClauseableNodeExtensionType>