TRPC: End-to-end typesafe APIs made easy
21–30 of 59 posts
Re: TRPC: End-to-end typesafe APIs made easy
#22> without schemas What is a type definition if not a schema?
Re: TRPC: End-to-end typesafe APIs made easy
#23I wrote the initial proof of concept for tRPC a little over a year ago (though I'm no longer involved in the project). Seems like there's some confusion about how this works. A more complete description is available here[0] below but I'll put a brief explanation below as well. - It's designed specifically for a full-stack TypeScript app. Your API is implemented as strongly typed server-side functions. - The input typ…
So essentially, it's protobuf but it describes the API instead of a message (which arguably is also an API description) and is for TypeScript on both sides.
Re: TRPC: End-to-end typesafe APIs made easy
#24Re: TRPC: End-to-end typesafe APIs made easy
#25Re: TRPC: End-to-end typesafe APIs made easy
#26I’ve never used this, but it looks like a very similar idea to Haskell’s Servant library [ https://docs.servant.dev/en/stable/ ]. Could someone who knows more enlighten me as to how correct this comparison is?
type UserAPI1 = "users" :> Get '[JSON] [User]
In tRPC based on the example it looks like you start by defining and instance then grab the type and export it.
Re: TRPC: End-to-end typesafe APIs made easy
#27Re: TRPC: End-to-end typesafe APIs made easy
#28Re: TRPC: End-to-end typesafe APIs made easy
#29Never had such a seamless experience building and deploying “full stack” apps. Multiple classes of bugs just, like, don’t happen now?
Helped build up a lot of the GraphQL tech at twitch, and I still love it, but man do I not miss all the work maintaining the “contract” between front and back. I know we will have to move off tRPC eventually, but I’m hyped at how far it’s taken us already
Re: TRPC: End-to-end typesafe APIs made easy
#30I’ve never used this, but it looks like a very similar idea to Haskell’s Servant library [ https://docs.servant.dev/en/stable/ ]. Could someone who knows more enlighten me as to how correct this comparison is?