Emulating "enums" in JSDoc version of TypeScript
There are some limitations in what you can do in JSDoc, but a lot of them can be worked-around by using type-definition files
.d.ts (for example in a
One thing you can't do in those
.d.ts files though, is use enums. You could define them of course, but you won't get the runtime representation since the files don't generate JS code.