vibbin14mo ago

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>();
1 Reply
backbone14mo ago
I have an idea that deploy the appRouter.d.ts npm library in different repo. but no practice