import { JSDocTag } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";
JS doc tag node.
Methods
getComment(): string | ()[] | undefined
Gets the tag's comment property. Use #getCommentText()
to get the text of the JS doc tag comment if necessary.
getCommentText(): string | undefined
Gets the text of the JS doc tag comment (ex. "Some description."
for @param value Some description.
).
Gets a structure that represents this JS doc tag node.
getTagName(): string
Gets the tag's name as a string (ex. returns "param"
for @param
).
Gets the tag name node (ex. Returns the param
identifier for @param
).
remove(): void
Removes the JS doc comment.
replaceWithText(textOrWriterFunction: string | WriterFunction): Node
set(structure: Partial<JSDocTagStructure>): Node<ts.Node>
Sets the node from a structure.
setTagName(tagName: string): Node<ts.Node>
Sets the tag name.