Infer TRoot and TProcedure for specific procedures (polymorphism)
Hello!
I'm trying to build a custom hook that returns specific procedures of a router:
How can I infer TRoot and TProcedure? Currently it is typed as
any
in T extends RequiredProcedures<any, any>
. But of course now my input and output types are also any
, which I don't want.
Any help is appreciated! :) Thanks!0 Replies