Typesript error


#1

Error TS2339: Property ‘access_token’ does not exist on type '{}'
Error TS2339: Property ‘cordova’ does not exist on type ‘Window’.

Not able to solve these to error in my app…any idea on how to solve them?


#2

Can you reproduce your issue on Plunkr or CodePen? It is hard to determine w/o context.


#3

For the second error you could use:

window['cordova']

instead

window.cordova

and in your first case, don’t declare your var as {}, use any instead.
I suspect it’s something like that.


#4

yup…it did (almost) :smile: