|
|
|
|
|
by NoahTheDuke
1734 days ago
|
|
This is a significant improvement on Typescript’s enums but I wonder what the underlying code it compiles to is. Because we’re planning on moving our codebase to ESM support (the community is moving over quickly), we’ve run into a number of issues with TS enums, the primary one being that TS enums compile to undefined vars that are populated with an IIFE, which disallows using them in certain import/export situations. |
|
Docs for enums compilation/runtime are here: https://flow.org/en/docs/enums/defining-enums/#toc-enums-at-...