[ https://issues.apache.org/jira/browse/THRIFT-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624659#comment-14624659 ]
Hudson commented on THRIFT-3223: -------------------------------- SUCCESS: Integrated in Thrift #1609 (See [https://builds.apache.org/job/Thrift/1609/]) THRIFT-3223 TypeScript: Added support for maps of enums. (r.meier: rev 5af2d99c5e9de2e3af63732a7ee20e1fe49dd564) * compiler/cpp/src/generate/t_js_generator.cc > TypeScript: Add initial support for Enum Maps > --------------------------------------------- > > Key: THRIFT-3223 > URL: https://issues.apache.org/jira/browse/THRIFT-3223 > Project: Thrift > Issue Type: Improvement > Components: JavaScript - Compiler > Reporter: Felipe Barriga Richards > Labels: typescript > Fix For: 0.9.3 > > Attachments: 0001-TypeScript-Added-support-for-maps-of-enums.patch > > > This patch improve the generation of maps with enums. More improvements can > be done but we need to have this issue solved first: > https://github.com/Microsoft/TypeScript/pull/2652 > Old Code: > {code} > enum BarTypes { > A = 0, > B = 1 > } > class Bar { > } > class Foo { > bars: any; > } > {code} > New Code: > {code} > enum BarTypes { > A = 0, > B = 1 > } > class Bar { > } > class Foo { > bars: { [k: number /*BarTypes*/]: Bar; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)