Function isObjectTypeDeclaration

  • Test if a node is an ObjectTypeDeclaration.

    Parameters

    • node: Node

    Returns node is ObjectTypeDeclaration

    Whether the given node appears to be an ObjectTypeDeclaration.

    Example

    declare const node: ts.Node;

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