* Creates a middleware. * * @see https://orpc.dev/docs/middleware Middleware Docs
( // = any here is important to make middleware can be used in any output by default
middleware: Middleware<
TInitialContext,
UOutContext,
TInput,
TOutput,
ORPCErrorConstructorMap<InferContractRouterErrorMap<T>>,
InferContractRouterMeta<T>
>,
)
| 30 | * @see {@link https://orpc.dev/docs/middleware Middleware Docs} |
| 31 | */ |
| 32 | middleware<UOutContext extends IntersectPick<TCurrentContext, UOutContext>, TInput, TOutput = any>( // = any here is important to make middleware can be used in any output by default |
| 33 | middleware: Middleware< |
| 34 | TInitialContext, |
| 35 | UOutContext, |
no outgoing calls
no test coverage detected