You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2015/06/23 14:39:01 UTC

[jira] [Commented] (THRIFT-3185) typedef is ignored in d.ts files for TypeScript.

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

James E. King, III commented on THRIFT-3185:
--------------------------------------------

What is the correct component to categorize this under?

> 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)