title: how can I avoid TS6133 errors when using anonymous methods?
body: <p>We have a TypeScript project that I am trying to clean-up a bit.
  I started turning on stricter type-checking. Today, I just enabled <code>noUnusedParameters</code> in <code>tsconfig.json</code>.</p>
  
  <p>We use <code>expressJS</code> and the following code is getting flagged with a <code>error TS6133: 'req' is declared but never used.</code></p>
  
  <p>How can I rewrite this to comply?</p>
  
  <pre class="lang-ts prettyprint-override"><code>import * as express from 'express';
  
  const app = express();
  
  app.get('/', (req, res) =&gt; {
      res.sendStatus(200);
  });
  </code></pre>
  
  <p>Obviously, I have to declare <code>req</code> if I want to have <code>res</code>.</p>