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

    Function hasType

    • Test if a node is a HasType.

      Parameters

      • node: Node

      Returns node is HasType

      Whether the given node appears to be a HasType.

      declare const node: ts.Node;

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