title: MomentJS type definition with Typescript 2.0
body: <p>Alright, my first question on SO, how exciting! :)</p>
  
  <p>I am trying to get MomentJS definitions to work with Typescript 2.0.</p>
  
  <p>I have no issues in getting Angular definitions to work, simply by doing <code>npm install @types/angular --save-dev</code>.</p>
  
  <p>However, MomentJS (2.15.1) already comes with <code>moment.d.ts</code> as part of the package you get when you install it.</p>
  
  <p>If you try to do a similar approach to angular, i.e. <code>npm install @types/moment --save-dev</code>, this is what you get:</p>
  
  <blockquote>
    <p>npm WARN deprecated @types/moment@2.13.0: This is a stub types definition for Moment (<a href="https://github.com/moment/moment" rel="noreferrer">https://github.com/moment/moment</a>). Moment provides its own type definitions, so you don't need @types/moment installed!</p>
  </blockquote>
  
  <p>And surely enough, if you go to <code>node_modules\@types\moment</code>, there's nothing useful in there.</p>
  
  <p>Yes, I have added the <code>tsconfig.json</code> file on my root folder, so Typescript 2.0 will automatically pick up the @types on node_modules (this is why Angular works fine), but for MomentJS I get the error below (since the .d.ts is not on the place where TS2 expects it to be):</p>
  
  <blockquote>
    <p>TS2304 Cannot find name 'moment'.</p>
  </blockquote>
  
  <p>I also tried playing around with the <code>"typeRoots"</code> config on <code>tsconfig.json</code> without any luck.</p>
  
  <p>This is the relevant piece of my <code>package.json</code>:</p>
  
  <pre><code>{
    "devDependencies": {
      "@types/angular": "^1.5.16"
    },
      "dependencies": {
          "moment": "^2.15.1"
      }
  }
  </code></pre>
  
  <p>I am using VS2015, if this matters.</p>
  
  <p>So... Any ideas on how to get Typescript 2.0 to read the type definition for Moment, that sits on an "unexpected" folder?</p>