Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3222

TypeScript: Generated Enums are quoted

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Patch Available
    • Patch

    Description

      Currently the generated enums looks like:

      enum Foo {
         'A' = 0,
         'B'=1,
         'C'=2
      }
      

      And they should be:

      enum Foo {
         A = 0,
         B = 1,
         C = 2
      }
      

      With this change WebStorm is able to autofill the values of the enum.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            fbarriga Felipe Barriga Richards
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment