@webroute/routeInterfaces
UseMiddlewareInput
Extends
MiddlewareFn
<TResult
, [RequestCtx
<TParams
,TQuery
,TBody
,THeaders
,TState
,TProviders
>]>
Type Parameters
Type Parameter | Default type |
---|---|
TParams | unknown |
TQuery | unknown |
TBody | unknown |
THeaders | unknown |
TState | unknown |
TProviders | unknown |
TResult extends DataResult | void | void |
UseMiddlewareInput(
request
, ...rest
):Awaitable
<MiddlewareResult
<TResult
,any
[]>>
Parameters
Parameter | Type |
---|---|
request | Request |
...rest | [object ] |
Returns
Awaitable
<MiddlewareResult
<TResult
, any
[]>>