Closed phaxz10 closed 1 year ago
return { req, res, ...userProvidedContext, resolveNestDependency, };
also added the ability to define types for Req and Res object
Req
Res
export type InferContextType<TContext, TReq = IncomingMessage, TRes = ServerResponse> = TContext extends () => any ? inferAsyncReturnType<TContext> & NestResolver<TReq, TRes> : NestResolver<TReq, TRes>;
Snippet
also added the ability to define types for
Req
andRes
object