• Type Parameters

    • Opts extends Record<string, any>

    Parameters

    Returns ((reqOrOptions, resOrCtx, options?) => void | Promise<void> | Response | Promise<Response> | ((req, resOrCtxInner) => void | Promise<void> | Response | Promise<Response>))

      • (reqOrOptions, resOrCtx, options?): void | Promise<void> | Response | Promise<Response> | ((req, resOrCtxInner) => void | Promise<void> | Response | Promise<Response>)
      • Parameters

        • reqOrOptions: NextApiRequest | NextRequest | Opts
        • resOrCtx: NextApiResponse<any> | AppRouteHandlerFnContext
        • Optional options: Opts

        Returns void | Promise<void> | Response | Promise<Response> | ((req, resOrCtxInner) => void | Promise<void> | Response | Promise<Response>)