API Design · Middle · Question 46 of 75
When is tRPC a good choice?
- 1For browser-to-database calls
- ✓Correct answer: For TypeScript full-stack apps where client and server share types in one repo and the API isn't public
- 3For public APIs used by many languages
Explanation
tRPC gives end-to-end types without code generation, but couples clients to the TypeScript server.