Roben pfp
Roben
@robingood
Typescript Monorepo question: I'm working on a project with a frontend and a backend, and I'd like to share types for the route data between them (as in tRPC, etc) However, I don't want to have to make the backend a dependency of the frontend (slows down builds, etc.) I also don't want to have to make a third package to manage a "route schema" -- I'd like to define each route's data types in the same file as the route handler itself. Is there a solution to this?
0 reply
0 recast
0 reaction