-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.9.3
-
Component/s: JavaScript - Compiler
-
Labels:
-
Patch Info:Patch Available
-
Flags: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:
enum BarTypes { A = 0, B = 1 } class Bar { } class Foo { bars: any; }
New Code:
enum BarTypes { A = 0, B = 1 } class Bar { } class Foo { bars: { [k: number /*BarTypes*/]: Bar; }