title: Property 'code' does not exist on type 'Error'
body: <p>How can I access the Error.code property?
  I get a Typescript error because the property 'code' does not exist on type 'Error'.</p>
  <pre><code>this.authCtrl.login(user, {
     provider: AuthProviders.Password,
     method: AuthMethods.Password
  }).then((authData) =&gt; {
      //Success
  }).catch((error) =&gt; {
     console.log(error); // I see a code property
     console.log(error.code); //error
  })
  </code></pre>