Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Patch Available
-
Patch
Description
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; }