| ▲ | cube2222 3 hours ago | |
We've been using guts basically since it was published on GitHub (almost a year now), and it's so nice! We have a "custom POST-based JSON-rpc"-style api, so we have request and response bodies defined as Go types, and are generating the whole TS schema from it. It basically lets you generate typescript types from your Go types. However, it's very customizable - you can post-process the AST. In our case, we have a custom generic Go type that indicates an optional (not nullable) field, and we can easily translate it to optional TS types (e.g. for sparse updates). All in all, great tool/library, thanks for building it! Disclaimer: I know a developer at Coder (not the author), who also recommended me guts back then, but am unaffiliated other than that. | ||
| ▲ | emyrk 2 hours ago | parent [-] | |
Thrilled to see you got value out of it! | ||