Skip to main content
Module

x/ts_morph/mod.ts>InterfaceDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class InterfaceDeclaration
extends InterfaceDeclarationBase<ts.InterfaceDeclaration>
import { InterfaceDeclaration } from "https://deno.land/x/ts_morph@15.1.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(): NonNullable<NodeParentType<ts.InterfaceDeclaration>>

Gets the structure equivalent to this node.

set(structure: Partial<InterfaceDeclarationStructure>): this

Sets the node from a structure.