title: Set window.location with TypeScript
body: <p>I am getting an error with the following TypeScript code:</p>
  
  <pre><code> ///&lt;reference path='../../../Shared/typescript/jquery.d.ts' /&gt;
   ///&lt;reference path='../../../Shared/typescript/jqueryStatic.d.ts' /&gt;
  
   function accessControls(action: Action) {
      $('#logoutLink')
          .click(function () {
              var $link = $(this);
              window.location = $link.attr('data-href');
          });
  
   }
  </code></pre>
  
  <p>I am getting an underlined red error for the following:</p>
  
  <pre><code>$link.attr('data-href'); 
  </code></pre>
  
  <p>The message says: </p>
  
  <pre><code>Cannot convert 'string' to 'Location': Type 'String' is missing property 'reload' from type 'Location'
  </code></pre>
  
  <p>Does anyone know what this means?</p>