title: Creating a variable with get/set inside a module in Typescript
body: <p>I want to create a variable with get/set properties inside a module. 
  I saw some working examples for creating a get/set property inside a class that looks like this :</p>
  
  <pre><code>class MyClass {
      private view;
      get View() { return this.view; }
      set View(value) { this.view = value }
  }
  </code></pre>
  
  <p>But I want to do the same inside a module :</p>
  
  <pre><code>module MyModule {
      export var view;
      //I want to create get/set methods for view property here
  }
  </code></pre>
  
  <p>How do I do that ?</p>