Trpc Typesafe API

当用 TypeScript 单仓前后端(Next.js/Remix/Express+React)需要免 Schema、免代码生成的端到端类型安全 API,或为已有 tRPC 加鉴权中间件、订阅、SSR 调用时使用;做 router/procedure 设计、Zod 输入校验、双 context 工厂、protectedProcedure、客户端 React Query 接线并产出可落地代码;不适用于跨语言/异构客户端、纯 REST/GraphQL 契约、裸 SQL 或 ORM 调优。触发词:tRPC、router、procedure、Zod、createTRPCContext、protectedProcedure、useQuery

findscripter d8e6a8a 10.2 KB Updated

File contents

findscripter/everything-skills/tree/main/02-engineering/trpc-typesafe-api commit d8e6a8a8da

Frequently asked questions

npx skillmds@latest add findscripter/trpc-typesafe-api