Home > @wixc3/typescript > getLeadingComments
A more regorges ts.getLeadingCommentRanges: Finds mid - statement comments as well
Signature:
export declare function getLeadingComments(node: ts.Node): Iterable<Comment>;
Parameter | Type | Description |
---|---|---|
node | ts.Node |
Returns:
Iterable<Comment>
text - the content of the comment, without // or /* */