Type alias PageRouteHandlerFn<Options>
PageRouteHandlerFn<Options>: ((req, res, opts?) => Promise<void> | void)
Type declaration
- (req, res, opts?): Promise<void> | void
Parameters
req: NextApiRequest
res: NextApiResponse
Optional
opts: Options
Returns Promise<void> | void
Handler function for app routes.