Skip to main content
Module

x/ts_morph/mod.ts>ClassDeclaration#extractInterface

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method ClassDeclaration.prototype.extractInterface
import { ClassDeclaration } from "https://deno.land/x/ts_morph@15.1.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.