You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "HIRANO Satoshi (JIRA)" <ji...@apache.org> on 2015/06/12 10:36:01 UTC
[jira] [Created] (THRIFT-3185) typedef is ignored in d.ts files for
TypeScript.
HIRANO Satoshi created THRIFT-3185:
--------------------------------------
Summary: 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)