Can i fetch tRPC in different project
@coco- : I Make a tRPC in my project. Can I use the enpoint api in different project ?
B
backbone•399d ago
Yes
1.one client calling different tRPC servers, see official docs
2.different tRPC servers calling, you can init @trpc/client in server just working like client
3.other client like android, you can call the tRPC server like restful api (this is my opinion)
4.8KMembers
View on DiscordMore Posts
Importing AppRouter types from an external repoI've got a production T3 app already in production. I've created a fresh expo app to start building TypeScript type for request object for route handlersSo far I've been writing my routes like:
```typescript
export const router = t.router({
helloWorlTyped wrappers for proceduresI have a TRPC client with working queries and mutations. I wanted to create wrapper functions for alAre TRPC server procedures actual endpoints? Meaning can you directly do a `post` request to them?Lets say you have a public procedure called `getHelloWorld`, can you hit it by doing `localhost:3000