[ 
https://issues.apache.org/jira/browse/THRIFT-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James E. King, III updated THRIFT-3185:
---------------------------------------
    Affects Version/s: 0.9.2

> 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
>          Components: JavaScript - Compiler
>    Affects Versions: 0.9.2
>            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)

Reply via email to