Skip to main content
Module

x/ts_morph/mod.ts>JSDoc#getComment

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

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

Returns

string | ()[] | undefined