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

TypeScript: additional comma in method signature without parameters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.9.3
    • Component/s: JavaScript - Compiler
    • Labels:
    • Patch Info:
      Patch Available
    • Flags:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: