Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ts_morph/mod.ts>FunctionDeclaration#insertOverload

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

Inserts a function overload.

Parameters

index: number
  • Child index to insert at.
  • Structure of the overload.