I'm using this typescript code:
const tryThis = () => {
const methods = {
Login() {
console.log("I'm Login()")
},
OnInit() {
this.Login()
}
}
return methods
}
but @typescript-eslint warns me with:
Unsafe member access .Login on an any value. eslint@typescript-eslint/no-unsafe-member-accessUnsafe call of an any typed value. eslint@typescript-eslint/no-unsafe-call
Why?
How can I fix this?