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

    Function isEnumType

    • Test if a type is a EnumType.

      Parameters

      • type: Type

      Returns type is EnumType

      declare const type: ts.Type;

      if (isEnumType(type)) {
      // ...
      }