trpc
v11 beta
上面的客户端不是从服务器导入任何代码,而是仅导入其类型声明。
笔记
您正在查看next trpc的分支,这是代表版本11的当前正在进行的工作。
11.0.0next标签发布TRPC允许您无需模式或代码生成即可轻松构建和消费完全typeafe API。
您可以使用一些示例来播放TRPC或引导您的新项目。例如,如果您想要next.js应用程序,则可以使用全堆栈Next.js示例:
快速开始使用全堆栈Next.js示例:
# yarn
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
# npm
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
# pnpm
pnpm create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
# bun
bunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
# deno
deno init --npm next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter请参阅trpc.io上的完整文档。 ?
您想贡献吗?首先,在打开问题或公关之前,请阅读贡献指南,以便您了解分支策略和当地开发环境。如果您需要更多的指导或想提出更多问题,请随时在不和谐上写信给我们!
|
展开
相关应用
为您推荐
|