Module

x/ts_morph/mod.ts>Decorator#insertTypeArgument

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

Inserts a type argument.

Parameters

index: number
  • Child index to insert at.
argumentText: string
  • Argument text.

Returns

TypeNode<ts.TypeNode>