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上的完整文檔。 ?
您想貢獻嗎?首先,在打開問題或公關之前,請閱讀貢獻指南,以便您了解分支策略和當地開發環境。如果您需要更多的指導或想提出更多問題,請隨時在不和諧上寫信給我們!
|
展開
相關應用
爲您推薦
|