Property 'error' does not exist on type 'MiddlewareOKResult<any>'.
Hello,
I am building an trpc adapter for nestjs, and I am trying to extend some of trpc's functionality, specifically the procedure middleware by creating a procedure class.
I am using the
MiddlewareFunction
here so it will provide the correct opts
implementation.
Everything works perfectly, but when I am trying to run it, I am getting a typescript error:
Anyone has an idea of how to solve this? I thought about using the ProcedureBuilder
interface but couldn't make it to work.0 Replies