TypeScript type for request object for route handlers
So far I've been writing my routes like:
What would be the type for
What would be the type for
req if I wanted to extract my handlers like so:reqexport const router = t.router({
helloWorld: t.procedure.query(async (req) => "Hello World"),
})const handler = async (req:?) => "Hello World"
export const router = t.router({
helloWorld: t.procedure.query(hander)
})