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

    Function isObjectFlagSet

    • Test if the given node has the given ObjectFlags set.

      Parameters

      • objectType: ObjectType
      • flag: ObjectFlags

      Returns boolean

      declare const node: ts.Node;

      if (isObjectFlagSet(node, ts.ObjectFlags.Anonymous)) {
      // ...
      }