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

    Function isDeclarationWithTypeParameters

    • Test if a node is a DeclarationWithTypeParameters.

      Parameters

      • node: Node

      Returns node is DeclarationWithTypeParameters

      Whether the given node appears to be a DeclarationWithTypeParameters.

      declare const node: ts.Node;

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