NestTrpcMiddlewareOptions
What nestjs-trpc hands a middleware’s use, written out structurally so
the package needs no nestjs-trpc types. next takes an optional context
typed as nestjs-trpc types it, so a class fits its TRPCMiddleware under
strictFunctionTypes.
Type Parameters
Section titled “Type Parameters”TResult
Section titled “TResult”TResult
Properties
Section titled “Properties”
readonlyctx:object
readonlyoptionalmeta?:unknown
readonlytype:string
Methods
Section titled “Methods”next()
Section titled “next()”next(
opts?):Promise<TResult>
Parameters
Section titled “Parameters”Record<string, unknown>
Returns
Section titled “Returns”Promise<TResult>