PHP Enums not converted correctly
Closed this issue · 3 comments
angauber commented
PHP Enums and backed Enums are not correctly converted to TS Enums
#14 introduced TS enums transformations but the toEnum method always create string enums
Is this the intended way ?
rubenvanassche commented
Hi @angauber,
You're right, enums shouldn't always be transformed into String enums. At the moment we're not using the enum functionality of the package (we just use a list of string, the default option) so I have no time at the moment to fix this. But I would accept a tested PR that adds this functionality!
rovansteen commented
I think #19 should resolve this issue.
rubenvanassche commented
Merged and released!