Module

x/ts_morph/ts_morph.d.ts>JSDoc#getComment

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method JSDoc.prototype.getComment
import { JSDoc } from "https://dotland.deno.dev/x/ts_morph@22.0.0/ts_morph.d.ts";

Gets the comment property. Use #getCommentText() to get the text of the JS doc comment if necessary.

Returns

string | ()[] | undefined