[
https://issues.apache.org/jira/browse/THRIFT-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14598564#comment-14598564
]
HIRANO Satoshi commented on THRIFT-3185:
----------------------------------------
Hi,
compiler/cpp/src/generate/t_js_generator.cc
hirano
> typedef is ignored in d.ts files for TypeScript.
> ------------------------------------------------
>
> Key: THRIFT-3185
> URL: https://issues.apache.org/jira/browse/THRIFT-3185
> Project: Thrift
> Issue Type: Improvement
> Reporter: HIRANO Satoshi
>
> TypeScript support is very valuable for us.
> But, currently d.ts files for TypeScript does not include any info on
> typedefs defined in IDLs.
> For example, we have foo.idl like this.
> typedef string userID
> struct Foo {1: userID s }
> Currently this is compiled into foo.d.ts like this.
>
> declare class Foo { s: string; }
> I should be like this, or we have to use string instead of meaningfull userID.
> declare type userID = string;
> declare class Foo { s: userID; }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)