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