Closed 87vrvk9k closed 4 years ago
Enum members are not renamed, but member access is renamed resulting in potential runtime errors.
export enum TestEnum { Test1, Test2, Test3, }
Results in:
export var TestEnum; (function (TestEnum) { TestEnum[TestEnum["Test1"] = 0] = "Test1"; TestEnum[TestEnum["Test2"] = 1] = "Test2"; TestEnum[TestEnum["Test3"] = 2] = "Test3"; })(TestEnum || (TestEnum = {}));
Member access results in:
console.log(TestEnum._internal_Test1);
Which does not exist.
Enum members are not renamed, but member access is renamed resulting in potential runtime errors.
Results in:
Member access results in:
Which does not exist.