title: Typescript: TS7006: Parameter 'xxx' implicitly has an 'any' type
body: <p>In testing my UserRouter, I am using a json file</p>
  
  <p><strong>data.json</strong></p>
  
  <pre><code>[
    {
      "id": 1,
      "name": "Luke Cage",
      "aliases": ["Carl Lucas", "Power Man", "Mr. Bulletproof", "Hero for Hire"],
      "occupation": "bartender",
      "gender": "male",
      "height": {
        "ft": 6,
        "in": 3
      },
      "hair": "bald",
      "eyes": "brown",
      "powers": [
        "strength",
        "durability",
        "healing"
      ]
    },
    {
    ...
    }
  ]
  </code></pre>
  
  <p>Building my app, I get the following TS error </p>
  
  <pre><code>ERROR in ...../UserRouter.ts
  (30,27): error TS7006: Parameter 'user' implicitly has an 'any' type.
  </code></pre>
  
  <p><strong>UserRouter.ts</strong></p>
  
  <pre><code>import {Router, Request, Response, NextFunction} from 'express';
  const Users = require('../data');
  
  export class UserRouter {
    router: Router;
  
    constructor() {
    ...
    }
  
    /**
     * GET one User by id
     */
    public getOne(req: Request, res: Response, _next: NextFunction) {
      let query = parseInt(req.params.id);
   /*[30]-&gt;*/let user = Users.find(user =&gt; user.id === query);
      if (user) {
        res.status(200)
          .send({
            message: 'Success',
            status: res.status,
            user
          });
      }
      else {
        res.status(404)
          .send({
            message: 'No User found with the given id.',
            status: res.status
          });
      }
    }
  
  
  }
  
  const userRouter = new UserRouter().router;
  export default userRouter;
  </code></pre>