title: TypeScript error warning, but it works
body: <p>I'm using angular2-rc1</p>
  
  <pre><code>import {RouteParams} from '@angular/router-deprecated';
  
  constructor(
      private _routeParams: RouteParams
  ){}
  
  ngOnInit() {
    var routeParams = this._routeParams.params
  
    if(routeParams.code){
      console.log('has code param', routeParams.code);
    }
  }
  </code></pre>
  
  <p>In my editor (I'm using atom) it gives me an error for <code>routeParams.code</code> and says <code>Property 'code' does not exist on type {'[key:string]:string; }</code> everything works fine, even the console log logs out the code param. I can't seem to figure out why this is here or how to get rid of it.</p>
  
  <p>Even more annoying is when I start the server (<code>npm start</code>) it gives this error and won't start. I have to comment it out and then the server will start, and then I can uncomment it and it all works fine. Any ideas why this is happening and/or how I can get rid of the typescript error? Let me know any other information to give to help, I'm pretty lost on this.</p>