import { JSDoc } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";
JS doc node.
Methods
addTags(structures: ReadonlyArray<OptionalKind<JSDocTagStructure>>): JSDocTag<ts.JSDocTag>[]
Adds JS doc tags.
getComment(): string | ()[] | undefined
Gets the comment property. Use #getCommentText()
to get the text of the JS doc comment if necessary.
getParent(): NodeParentType<ts.JSDoc>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.JSDoc>>
insertTag(index: number, structure: OptionalKind<JSDocTagStructure>): JSDocTag<ts.JSDocTag>
Inserts a JS doc tag at the specified index.
insertTags(index: number, structures: ReadonlyArray<OptionalKind<JSDocTagStructure>>): JSDocTag<ts.JSDocTag>[]
Inserts JS doc tags at the specified index.