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

    Function isNumberLiteralType

    • Test if a type is a NumberLiteralType.

      Parameters

      • type: Type

      Returns type is NumberLiteralType

      declare const type: ts.Type;

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