You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Felipe Barriga Richards (JIRA)" <ji...@apache.org> on 2015/07/07 17:52:04 UTC

[jira] [Commented] (THRIFT-3227) TypeScript: Export Interfaces + Classes for Structs

    [ https://issues.apache.org/jira/browse/THRIFT-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616890#comment-14616890 ] 

Felipe Barriga Richards commented on THRIFT-3227:
-------------------------------------------------

Questions:
- The prefix *I_* is ok for you ?
- Any suggestion for function name *ts_get_struct_prefix* ?

> TypeScript: Export Interfaces + Classes for Structs
> ---------------------------------------------------
>
>                 Key: THRIFT-3227
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3227
>             Project: Thrift
>          Issue Type: New Feature
>          Components: JavaScript - Compiler
>            Reporter: Felipe Barriga Richards
>              Labels: typescript
>         Attachments: 0001-TypeScript-Use-interface-instead-of-classes-for-stru.patch
>
>
> 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_*



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)