- withValidations(validations: ValidationHoF[]): ((handler?: ((req: NextApiRequest, res: NextApiResponse<any>) => any)) => ((req: NextApiRequest, res: NextApiResponse<any>, next?: NextHandler) => Promise<any>))
-
Parameters
-
validations: ValidationHoF[]
Returns ((handler?: ((req: NextApiRequest, res: NextApiResponse<any>) => any)) => ((req: NextApiRequest, res: NextApiResponse<any>, next?: NextHandler) => Promise<any>))
-
- (handler?: ((req: NextApiRequest, res: NextApiResponse<any>) => any)): ((req: NextApiRequest, res: NextApiResponse<any>, next?: NextHandler) => Promise<any>)
-
Parameters
-
Optional
handler: ((req: NextApiRequest, res: NextApiResponse<any>) => any)
-
- (req: NextApiRequest, res: NextApiResponse<any>): any
-
Parameters
-
req: NextApiRequest
-
res: NextApiResponse<any>
Returns any
Returns ((req: NextApiRequest, res: NextApiResponse<any>, next?: NextHandler) => Promise<any>)
-
- (req: NextApiRequest, res: NextApiResponse<any>, next?: NextHandler): Promise<any>
-
Parameters
-
req: NextApiRequest
-
res: NextApiResponse<any>
-
Optional
next: NextHandler
Returns Promise<any>