Remove comment symbols from a TypeScript comment string.
This also takes care of special JSDoc tags like {@link ...} and {@see ...}.
Parameters
comment: string
Returns string
Example
constcomment = '/**\n* This is a comment.\n* It has multiple lines.\n */'; // closing comment sadly escaped for ts doc constcleaned = removeCommentSymbolsFromTypeScriptComment(comment); console.log(cleaned);
Remove comment symbols from a TypeScript comment string. This also takes care of special JSDoc tags like
{@link ...}and{@see ...}.