Module

x/ts_morph/mod.ts>TypeParameterDeclaration#setDefault

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

Sets the type parameter default type node.

Parameters

text: string | WriterFunction
  • Text to set as the default type node.