Function isJSDocComment

  • Test if a node is a JSDocComment.

    Parameters

    • node: Node

    Returns node is JSDocComment

    Whether the given node appears to be a JSDocComment.

    Example

    declare const node: ts.Node;

    if (isJSDocComment(node)) {
    // ...
    }