T
tRPC

Importing AppRouter types from an external repo

Importing AppRouter types from an external repo

Vvibbin4/11/2023
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>();
Bbackbone4/12/2023
I have an idea that deploy the appRouter.d.ts npm library in different repo. but no practice

Looking for more? Join the community!

T
tRPC

Importing AppRouter types from an external repo

Join Server