rsnext/packages/next/next-server
Brandon Duffany 548a01754d
Fix type on NextApiHandler (#11988)
* Fix type on NextApiHandler

The example [here](https://nextjs.org/docs/api-routes/api-middlewares) shows that `NextApiHandler` can be async, so the return type should be `void | Promise<void>`.

* Add TS integration tests for API
2020-04-21 19:14:24 -05:00
..
lib Fix type on NextApiHandler (#11988) 2020-04-21 19:14:24 -05:00
server Make sure to not show _error without 404 warning in some cases (#12061) 2020-04-21 14:22:39 +02:00