title: TypeScript AMD in WebStorm. Annoying "Assigned Expression type" error
body: <p>I'm trying out TypeScript in JetBrains WebStorm.</p>
  
  <p>I have a very simple class in "person.ts":</p>
  
  <pre><code>export class Person {
    constructor(public name:string, public age:number) {
    }
      toString() {
      return this.name + ", " + this.age;
    }
  }
  </code></pre>
  
  <p>Then, on my app.ts I try to import it like this:</p>
  
  <pre><code>import nsp = module("person");
  
  export class App {
      start() {
          var my_user:nsp.Person;
          my_user = new nsp.Person("Julian", 111);
          console.log( my_user.toString() );
      }
  }
  </code></pre>
  
  <p>This seems to work. I can use <strong>tsc</strong> to compile to javascript:</p>
  
  <pre><code>tsc --module AMD .\public\script\app.ts
  </code></pre>
  
  <p>And I've also set up a FileWatcher for TypeScript in WebStorm. It's fine.</p>
  
  <p>But I'm getting this annoying error/warning: <strong>"Assigned Expression type Person is not assignable to type exports.Person"</strong></p>
  
  <p><img src="https://i.stack.imgur.com/xNaxB.png" alt="problem"></p>
  
  <p>Any ideas? Am I doing something wrong? Is this a bug in WebStorm?</p>
  
  <p>Here's my project on GitHub: <a href="https://github.com/JulianG/typescript-modularization-demo/" rel="noreferrer">https://github.com/JulianG/typescript-modularization-demo/</a> in case you want to try it out.</p>