Module

x/ts_morph/mod.ts>ClassDeclaration#extractInterface

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method ClassDeclaration.prototype.extractInterface
import { ClassDeclaration } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.ts";

Extracts an interface declaration structure from the class.

Parameters

optional
name: string
  • Name of the interface. Falls back to the same name as the class and then the filepath's base name.