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

    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.

      declare const node: ts.Node;

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