Middleware<
TField
>: (next
,payload
) =>MayPromise
<InferOutput
<InferFieldOutput
<TField
>>>
• TField extends GenericFieldOrOperation
= FieldOrOperation
<any
, any
, any
, any
>
• next
• payload: MiddlewarePayload
<TField
>
MayPromise
<InferOutput
<InferFieldOutput
<TField
>>>
packages/core/src/utils/middleware.ts:33