|
|
|
|
|
by realusername
2823 days ago
|
|
enums are probably the only TS thing which does not exist in plain JS (at least I can't think of any other one), and it's quite easy to replace. In your example you just replace enum by a hashmap and remove all the types and it's a valid JS file, it's not really that different. It would be quite easy for an automated tool to do that. |
|
But I agree with you, it would be quite easy for an automated tool to replace a TS enum with pure JS.