News for hackers. Stuff that matters.
Re:TRPC: End-to-end typesafe APIs made easy by awhitty on Friday May 06, 2022 @04:28PM (#31289328)
This project looks interesting! I have used a similar project called tsoa [1] and have appreciated that it generates an OpenAPI spec that can be consumed readily by many other clients, even outside the JS ecosystem. Does TRPC have plans for a similar feature set?

[1] https://tsoa-community.github.io/docs/

Re:TRPC: End-to-end typesafe APIs made easy by alexdotjs on Friday May 06, 2022 @05:50PM (#31289933)
Yup, with the optional `output`-property we actually have all the type information needed to generate an openapi-schema.

See this for more info: https://github.com/trpc/trpc/issues/1724

Re:TRPC: End-to-end typesafe APIs made easy by awhitty on Friday May 06, 2022 @07:51PM (#31290773)
Thanks for the link! That looks really stellar actually. Excited to see how it shapes up.