Skip to main content
Module

x/ts_morph/mod.ts>ObjectLiteralExpression#addMethod

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method ObjectLiteralExpression.prototype.addMethod
import { ObjectLiteralExpression } from "https://deno.land/x/ts_morph@16.0.0/mod.ts";

Adds a method.

Parameters

  • Structure that represents the method to add.