Importing AppRouter types from an external repo
I've got a production T3 app already in production. I've created a fresh expo app to start building our app. Before turning this into one big monorepo I just want to test it both independently so the server code is in a different repo.
Might be a dumb question but how can I import the AppRouter type into my expo app?
import { type AppRouter } from "<external repo location>";
export const api = createTRPCReact<AppRouter>();
B
backbone•383d ago
I have an idea that deploy the appRouter.d.ts npm library in different repo. but no practice
4.8KMembers
View on DiscordMore Posts
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:3000TRPCClientError - No "query"-procedure on path "user.all"Im using react native expo, prisma, trpc and the postgres database is on railway
I have run the foll