Using Visual Studio 2015 I added google maps to one of my pages and inside that page’s TypeScript file whenever I referenced google I was getting the TypeScript error: Cannot find name ‘google’.
I was stuck on this for a few hours because I followed tutorials like this and did everything as explained but this error persisted. What I eventually realized was that I needed to include the TypeScript definition files for google maps (which I fetched from this repo) in my application so I added this inside the typings folder of the application structure.
What I would like to know is:
Is this just something caused by the IDE I’m using?
Is there likely to be a way in the future for me to not have to manually add the definition files myself?
Ionic info (in case it has any relevance to this discussion)
Cordova CLI: 5.4.0
Gulp version: CLI version 3.8.11
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.4
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
OS: Windows 8.1
Node Version: v4.4.2