Function hasDecorators

  • Test if a node is a HasDecorators.

    Parameters

    • node: Node

    Returns node is HasDecorators

    Whether the given node appears to be a HasDecorators.

    Example

    declare const node: ts.Node;

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