Skip to content

Commit a06691f

Browse files
committed
Fixed: Actually emit TS compatible enums in static target if not aliases, see #720
1 parent a5dbba4 commit a06691f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/targets/static.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ function buildEnum(ref, enm) {
606606
var aliased = [];
607607
Object.keys(enm.values).forEach(function(key) {
608608
var val = enm.values[key];
609-
if (aliased.indexOf(val) >= -1)
609+
if (aliased.indexOf(val) > -1)
610610
push("values[" + JSON.stringify(key) + "] = " + val + ";");
611611
else {
612612
push("values[valuesById[" + val + "] = " + JSON.stringify(key) + "] = " + val + ";");

0 commit comments

Comments
 (0)