Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ts_morph/ts_morph.d.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@16.0.0/ts_morph.d.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.