Javascript 错误TS2554,应为参数2,但得到1

Javascript 错误TS2554,应为参数2,但得到1,javascript,angular,typescript,angularfire2,Javascript,Angular,Typescript,Angularfire2,这里的问题显示在第三行: login(myForm1) { if(myForm1.valid) { this.af.auth.signInWithEmailAndPassword({ email: this.email, password: this.password }).then( (success)=>{ this.router.navigate(['/blog']); }).catch( (

这里的问题显示在第三行:

login(myForm1) {
  if(myForm1.valid) {
    this.af.auth.signInWithEmailAndPassword({
      email: this.email,
      password: this.password
    }).then(
      (success)=>{
        this.router.navigate(['/blog']);
    }).catch(
      (err)=>{
        this.error=err;
    })
  }
}

那我怎么解决呢?我到处搜索,但我不太明白。

这里只有一个参数,一个对象。函数
使用EmailAndPassword(…)登录
应具有2个参数。只要这样做:

this.af.auth.signInWithEmailAndPassword(this.email,this.password)

似乎,
signInWithEmailAndPassword
需要两个参数(可能是电子邮件和密码),但您只提供一个参数(一个对象)。