title: Using express-validator typescript definitions
body: <p>I'm trying to convert some of my code to TypeScript, but having problems with express-validator definitions</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>///&lt;reference path='../../../d.ts/node.d.ts' /&gt;
  ///&lt;reference path='../../../d.ts/express.d.ts' /&gt;
  ///&lt;reference path='../../../d.ts/express-validator.d.ts' /&gt;
  import express = require('express');
  import validator = require('express-validator');
  
  function validate(req: express.Request, res: express.Response) {
      req.assert('name', 'Name is required').notEmpty();
      var errors = req.validationErrors();
  
      if (errors !== null &amp;&amp; errors.length &gt; 0) {
          res.json({
              result: false,
              errors: errors
          });
          return false;
      }
      return true;
  }
  </code></pre>
  
  <p>Typescript compiler generates following errors:</p>
  
  <pre><code>error TS2094: The property 'assert' does not exist on value of type 'express.Request'.
  error TS2094: The property 'validationErrors' does not exist on value of type 'express.Request'.
  </code></pre>
  
  <p>Which makes sense especially looking at the expreess-validator definition</p>
  
  <pre><code>export interface RequestValidation {
      check(field: string, message: string): Validator;
      assert(field: string, message: string): Validator;
      sanitize(field: string): Sanitizer;
      onValidationError(func: (msg: string) =&gt; void): void;
  }
  </code></pre>
  
  <p>My understandment of RequestValidation interface is it must extend express.Request interface, but modifying this interface declaration does not really help.</p>
  
  <p>I'm I doing something wrong?</p>
  
  <p>Thank You! </p>