I feel like, as a JavaScript community, we keep asking for enums because it's what every other language has, and we run into lots of problems that would be solved by enums. But I'm not sure we really ...
This will create an enum.stub file in your stubs directory. You can then customize this file to decorate your JavaScript enum however you like.