Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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
Attachments
Issue Links
- relates to
-
THRIFT-3508 JS:TS Generator set all fields of the struct as required
- Closed