Skip to content

Commit

Permalink
Do not cast string enums to any
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Aug 23, 2017
1 parent 0613dac commit ae1c883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>typescript-fetch-api-swagger-codegen</artifactId>
<packaging>jar</packaging>
<name>typescript-fetch-api-swagger-codegen</name>
<version>1.0.3</version>
<version>1.0.4</version>
<prerequisites>
<maven>2.2.0</maven>
</prerequisites>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/typescript-fetch-api/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class BaseAPI {
export enum {{classname}} {
{{#allowableValues}}
{{#enumVars}}
{{{name}}} = <any>{{{value}}}{{^-last}},{{/-last}}
{{{name}}} = {{{value}}}{{^-last}},{{/-last}}
{{/enumVars}}
{{/allowableValues}}
}
Expand Down

0 comments on commit ae1c883

Please sign in to comment.