<!-- Please follow the issue template below for bug reports and feature requests. Also please indicate in the issue title which language/library is concerned. Eg: [JAVA] Bug generating foo with bar --> ##### Description I have an enum in my swagger scheme, but after generating the typescript-angular client with swagger codegen, the generated 'enum' looks like below:  The generator should use the typescript enum type instead of creating a custom object. ##### Swagger-codegen version 2.4.17 ##### Swagger declaration file content or url [https://pastebin.com/h9MK0NEQ](https://pastebin.com/h9MK0NEQ) ##### Command line used for generation `java -jar swagger-codegen-cli.jar generate -i http://localhost:54371/swagger/v1/swagger.json -l typescript-angular -o .` ##### Steps to reproduce Generate angular-typescript client with the swagger declaration file ##### Related issues/PRs / <!-- has a similar issue/PR been reported/opened before? Please do a search in https://github.com/swagger-api/swagger-codegen/issues?utf8=%E2%9C%93&q=is%3Aissue%20 --> ##### Suggest a fix/enhancement / <!-- if you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit), or simply make a suggestion -->