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.

    Example

    declare const node: ts.Node;

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