Module

x/ts_morph/ts_morph.d.ts>ArgumentedNode

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
interface ArgumentedNode
import { type ArgumentedNode } from "https://dotland.deno.dev/x/ts_morph@18.0.0/ts_morph.d.ts";

Methods

getArguments(): Node[]

Gets all the arguments of the node.

addArgument(argumentText: string | WriterFunction): Node

Adds an argument.

addArguments(argumentTexts: ReadonlyArray<string | WriterFunction> | WriterFunction): Node[]

Adds arguments.

insertArgument(index: number, argumentText: string | WriterFunction): Node

Inserts an argument.

insertArguments(index: number, argumentTexts: ReadonlyArray<string | WriterFunction> | WriterFunction): Node[]

Inserts arguments.

removeArgument(arg: Node): this

Removes an argument.

removeArgument(index: number): this

Removes an argument.

function ArgumentedNode
import { ArgumentedNode } from "https://dotland.deno.dev/x/ts_morph@18.0.0/ts_morph.d.ts";

Type Parameters

T extends Constructor<ArgumentedNodeExtensionType>