We are currently developing a login function using Cognito + ionic with a Facebook account.

I'm making a smartphone app, but since I'm using ionic, I'm trying to set up the SDK using javascript for the web instead of swift or object-c. (If there is another way, please comment!)

And, in order to set up the SDK, it is necessary to embed the following code written in the following javascript in the body.

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 thought it would be a bad idea to mix Typescript and Javascript, so I asked this question.

    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.