title: Property 'status' does not exist on type 'ServerResponse' (TS2339)
body: <p>I have tried creating an interface, installing react types, the only way this works is when i put the code in JavaScript but in a TS project, it gives me error:</p>
  <blockquote>
  <p>Property 'status' does not exist on type 'ServerResponse' (TS2339)</p>
  </blockquote>
  <p>Here's the code:</p>
  <pre><code>import multer from 'multer';
  import nc from &quot;next-connect&quot;;
  
  
  const upload = multer({
    storage: multer.diskStorage({
      destination: './public/uploads',
      filename: (req, file, cb) =&gt; cb(null, file.originalname),
    }),
  });
  
  const apiRoute = nc({
    onError(error, req, res) {
      res.status(501).json({ error: `Sorry something Happened! ${error.message}` });
    },
    onNoMatch(req, res) {
      res.status(405).json({ error: `Method '${req.method}' Not Allowed` });
    },
  });
  
  apiRoute.use(upload.array('theFiles'));
  
  apiRoute.post((req, res) =&gt; {
    res.status(200).json({ data: 'success' });
  });
  
  export default apiRoute;
  
  export const config = {
    api: {
      bodyParser: false, // Disallow body parsing, consume as stream
    },
  };
  </code></pre>
  <p>How to fix the typings?</p>