We are currently developing a login function using Cognito + ionic with a Facebook account.
I'd like to rewrite this into typescript and add it, but I'm stuck because I don't know how to fix it.
If anyone knows how to fix it and it works without error, please comment!
Answer # 1
I think you should write it as it is.
window windowIt is not appropriate to bring it to TypeScript in the first place if you write it to increase the properties of.