Skip to main content
Module

x/ts_morph/mod.ts>ObjectLiteralExpression#addMethods

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

Adds methods.

Parameters

structures: ReadonlyArray<OptionalKind<MethodDeclarationStructure>>
  • Structure that represents the methods to add.