Function isFunctionLikeDeclaration

  • Test if a node is a FunctionLikeDeclaration.

    Parameters

    • node: Node

    Returns node is FunctionLikeDeclaration

    Whether the given node appears to be a FunctionLikeDeclaration.

    Deprecated

    With TypeScript v5, in favor of typescript's isFunctionLike.

    Example

    declare const node: ts.Node;

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