ts-api-utils - v3.0.0-rc.1
    Preparing search index...

    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.

      declare const node: ts.Node;

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