4 ms·
They seem similar. With Servant you start with a type definition describing your API (using type-level functions), from their docs: type UserAPI1 = "users" :>
by aranchelk 4y ago
They seem similar. With Servant you start with a type definition describing your API (using type-level functions), from their docs:
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.