Parameter ‘user’ implicitly has an ‘any’ type.ts

I always getting this Error trying to set up an Google Authentication with firebase.

Parameter ‘user’ implicitly has an ‘any’ type.ts(7006)

I searched everywhere but i cant figure out how to fix it :/

The code:enter code here

user$: Observable<User | null | undefined>;    
async googleSignin() {
        const provider = new firebase.auth.GoogleAuthProvider();
        const credential = await this.afAuth.signInWithPopup(provider);
        return this.updateUserData(credential.user);
      }
    
    
      private updateUserData(user) {    //This user causes the Error
        // Sets user data to firestore on login
        const userRef: AngularFirestoreDocument<User> = this.afs.doc(`users/${user.uid}`);
    
        const data = { 
          uid: user.uid, 
          email: user.email, 
          displayName: user.displayName, 
          photoURL: user.photoURL
          } 
    
        return userRef.set(data, { merge: true })
    
      }

Can someone pls help 😀

The documentation for this code: https://fireship.io/lessons/angularfire-google-oauth/

Source: Angular Questions