Closed cfraz89 closed 3 years ago
Sorry for the long delay @cfraz89 -- I'll try to get this merged soon!
We recently found ourselves wanting this on a project at work. Is there still interest in this PR if we were to resolve conflicts and get CI passing?
Definitely! Sorry again for not getting this merged sooner. I actually had a WIP branch open where I added more tests to exercise the new functionality. There are some test failures at the moment that I haven't looked at yet.
I just pushed the branch here: https://github.com/codedownio/aeson-typescript/tree/francesco-rebased
If someone could get the tests passing I'd be happy to merge it.
This is implemented now in 7e4c7b1d108280147a6eb5fdfae94e18fcdcb60b
Respect the unwrapUnaryRecords option. When True, this exports unary records / newtypes as a type alias to the type of the single field within.