PageRouteHandlerFn<Options>: ((req, res, opts?) => Promise<void> | void)

Type Parameters

  • Options

Type declaration

    • (req, res, opts?): Promise<void> | void
    • Handler function for app routes.

      Parameters

      • req: NextApiRequest
      • res: NextApiResponse
      • Optional opts: Options

      Returns Promise<void> | void