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://dotland.deno.dev/x/ts_morph@17.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(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.