Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ts_morph/mod.ts>JSDocTag#set

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

Sets the node from a structure.

Parameters

structure: Partial<JSDocTagStructure>
  • Structure to set the node with.

Returns

Node<ts.Node>

The node or the node that replaced the existing node (ex. when changing from a JSDocParameterTag to something else).