benmerckx / genes

Generates split ES6 modules and Typescript definitions from Haxe modules.
43 stars 8 forks source link

Allow const enum to be visible to TypeScript #74

Open singpolyma opened 1 month ago

singpolyma commented 1 month ago

Instead of just using number type could generate a TypeScript-side const enum like hxtsdgen does

benmerckx commented 1 month ago

Do you have an example of what you'd consider a const enum in Haxe? https://haxe.org/manual/types-abstract-enum.html?