Skip to main content
Module

x/ts_morph/mod.ts>InterfaceDeclaration

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

Methods

Gets the base types.

Gets all the implementations of the interface.

This is similar to "go to implementation."

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

Gets the structure equivalent to this node.

set(structure: Partial<InterfaceDeclarationStructure>): this

Sets the node from a structure.