TypeScript problem

Hello, doing library code, took inspiration from ts-rest and trpc. I have problem, my input and output types are any. How could I make it so that those would be correct?

https://tsplay.dev/WJpnlN

Here my old version where it worked if it helps:
https://tsplay.dev/w86bVm

is my problem my Routes type?
export type Routes = Route<AnyZodObject, ZodTypeAny>[];
Was this page helpful?