Function isVariableLikeDeclaration

  • Test if a node is a VariableLikeDeclaration.

    Parameters

    • node: Node

    Returns node is VariableLikeDeclaration

    Whether the given node appears to be a VariableLikeDeclaration.

    Example

    declare const node: ts.Node;

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