Function withValidations

  • Parameters

    • validations: ValidationHoF[]

    Returns ((handler?) => ((req, res, next?) => Promise<any>))

      • (handler?): ((req, res, next?) => Promise<any>)
      • Parameters

        • Optional handler: ((req, res) => any)
            • (req, res): any
            • Parameters

              • req: NextApiRequest
              • res: NextApiResponse

              Returns any

        Returns ((req, res, next?) => Promise<any>)

          • (req, res, next?): Promise<any>
          • Parameters

            • req: NextApiRequest
            • res: NextApiResponse
            • Optional next: NextHandler

            Returns Promise<any>

Generated using TypeDoc