Function isClassLikeDeclaration

  • Test if a node is a ClassLikeDeclaration.

    Parameters

    • node: Node

    Returns node is ClassLikeDeclaration

    Whether the given node appears to be a ClassLikeDeclaration.

    Deprecated

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

    Example

    declare const node: ts.Node;

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