title: property then does not exist on type void , A typescript error
body: <p>Code:</p>
  
  <pre><code> reset(){
    let alert = this.AlertCtrl.create({
      buttons :['ok']
    });
    this.userservice.passwordreset(this.email).then((res: any)=&gt;{
      if(res.success){
        alert.setTitle('Email sent');
        alert.setSubTitle('please follow the instructions in the email to reset the password')
  
      }
      else{
        alert.setTitle('failed');
      }
    })
  }
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>property then does not exist on type void , A typescript error</p>
  </blockquote>
  
  <p>can someone please help me by correcting this code snippet so that the 'then' function works
  cheers!</p>