<DxD/>
<DxD/>13mo ago

TRPC EXPORT API TYPES BE to FE

Is there a way I can automatically export my API types from the backend to the frontend? For example, after I modify my backend (e.g., create a new route), do I need to run something like 'trpc-api-export,' and will everything generated in my 'dist' folder be copied and placed in the 'api/api-types' folder on the frontend? Is there an automated way to do this?
2 Replies
Nick
Nick13mo ago
The point of trpc is there’s no codegen, you import the types straight from the BE
<DxD/>
<DxD/>13mo ago
ok thx i have one more question if is posible @Nick Lucas