Skip to main content
Module

x/ts_morph/mod.ts>ParenthesizedTypeNode#setType

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

Sets the type within the parentheses.

Parameters

textOrWriterFunction: string | WriterFunction
  • Text or writer function to set the type with.