Skip to main content
Module

x/ts_morph/mod.ts>TypeParameterDeclaration#setDefault

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

Sets the type parameter default type node.

Parameters

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