I am getting the following error
Argument of type '(user: User) => void' is not assignable to parameter of type '(value: User, index: number) => ObservableInput'. Type 'void' is not assignable to type 'ObservableInput'.
getCurrentUserDb()
{
return this.login.authState.pipe(
switchMap(user=>{
return this.serviceUsers.getUserByuid(user.uid);
}),
map(user=>{
return user;
})
)
}