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

TypeScript: Export Interfaces + Classes for Structs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JavaScript - Compiler
    • Patch Available
    • Patch

    Description

      Currently when compiling a thrift all the structs are converted into classes.
      Classes in TypeScript doesn't allow optional members.
      The proposed solutions:

      • Generate Interfaces + Classes
      • All the Classes will implement the generated Interfaces
      • All the Classes will have the methods read and write (already implemented on the generated JS code)
      • The Interfaces name will be prefixed with I_

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fbarriga Felipe Barriga Richards
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: