Permalink
Browse files

Fixed: Actually emit TS compatible enums in static target if not alia…

…ses, see #720
  • Loading branch information...
dcodeIO committed Mar 23, 2017
1 parent a5dbba4 commit a06691f5b87f7e90fed0115b78ce6febc4479206
Showing with 1 addition and 1 deletion.
  1. +1 −1 cli/targets/static.js
@@ -606,7 +606,7 @@ function buildEnum(ref, enm) {
var aliased = [];
Object.keys(enm.values).forEach(function(key) {
var val = enm.values[key];
if (aliased.indexOf(val) >= -1)
if (aliased.indexOf(val) > -1)
push("values[" + JSON.stringify(key) + "] = " + val + ";");
else {
push("values[valuesById[" + val + "] = " + JSON.stringify(key) + "] = " + val + ";");

0 comments on commit a06691f

Please sign in to comment.