Instead of just using `number` type could generate a TypeScript-side const enum like [hxtsdgen](https://github.com/nadako/hxtsdgen) does