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

TypeScript: additional comma in method signature without parameters

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.9.3
    • JavaScript - Compiler
    • Patch Available
    • Patch, Important

    Description

      The generated TypeScript code has an issue with methods with no parameters. The method signature shows an additional comma character (',') in the parameter list which have a callback argument.

        /**
         * A method definition....
         */
        ping(): void;
      
        /**
         * A method definition....
         */
        ping(, callback: Function): JQueryXHR;
      

      Attachments

        Activity

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

          People

            roger Roger Meier
            kfenner Kaspar Fenner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment