next-validations
Preparing search index...
withValidation
Function withValidation
withValidation
(
__namedParameters
:
ValidationHoF
,
)
:
(
handler
?:
(
req
:
NextApiRequest
,
res
:
any
)
=>
any
,
)
=>
(
req
:
NextApiRequest
,
res
:
any
,
next
?:
NextHandler
)
=>
Promise
<
any
>
Parameters
__namedParameters
:
ValidationHoF
Returns
(
handler
?:
(
req
:
NextApiRequest
,
res
:
any
)
=>
any
,
)
=>
(
req
:
NextApiRequest
,
res
:
any
,
next
?:
NextHandler
)
=>
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
next-validations
Loading...