Closed elsassph closed 5 years ago
The static function pointer looks a bit hacky and I don't have time for deep code review, but since we have tests and they pass - it should be fine, feel free to merge it :)
Yes it's quite hacky I agree. Alternative is to do a lot more of refactoring...
It works perfectly with commit 13b31da and can be merged.
Will produce:
-D hxtsdgen_enum_ts
to generate Abstract Enums as concrete TS files.With this option both a
.d.ts
and a.ts
are created. The.ts
includes concreteconst enum
declarations so they become compatible with--transpileOnly --preserveConstEnums
.Should fix #6 and #14