feature: add support for constant values#1835
Conversation
e70a61e to
0e324e8
Compare
|
Since |
|
@robertadkins we've decided to merge this pull request in our fork, thanks for this feature! |
Thank you. It really works in the fork. |
|
@kovalewvladimir are there any other issues you're running into with this package? |
|
@ferdikoomen Can we get this merged please? This is such a small PR and as far as I understand it, it would enable discriminated type unions. |
|
Yet it isn't archived and the last commit was two weeks ago. I don't want hey-api because 1) it is not compatible at all with the current state of the generated client and 2) I don't want generated code in my repo from which I only use 50% ( I just want a simple generated typescript client with discriminated type unions and I think that is not too much to ask for. 🥲 But yea, fork it is then. |
Closes #1834
See the issue above for a description of a usecase where support for the
constkeyword is useful. Updated the snapshot tests to verify correct output.