简介
tRPC 提供端到端类型安全的 TypeScript API,无需代码生成,支持 Next.js 集成与 React Query,实现客户端类型自动推断。
原始描述
Expert guidance for tRPC (TypeScript Remote Procedure Call) including router setup, procedures, middleware, context, client configuration, and Next.js integration. Use this when building type-safe APIs, integrating tRPC with Next.js, or implementing client-server communication with full TypeScript inference.