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?
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?
Can you reproduce your issue on Plunkr or CodePen? It is hard to determine w/o context.
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.
yup…it did (almost)