.wenchen
.wenchen12mo ago

Can someone explain MiddlewareFunction?

I am trying to create a custommiddleware.ts file and I would like some explanation on what goes into the type MiddlewareFunction. I don't quiet understand what the types TParams extends ProcedureParams<AnyRootConfig,unknown,unknown,unknown,unknown,unknown,unknown> and TParamsAfter extends ProcedureParams<AnyRootConfig,unknown,unknown,unknown,unknown,unknown,unknown> . Basically, what do I need to pass into MiddlewareFunction<?,?>. Thank you
0 Replies
No replies yetBe the first to reply to this messageJoin