reference type google.maps directive missing from 1.6.10
Hey there,
Up until v1.6.8 of this package the following line was included in dist/index.d.ts:
/// <reference types="google.maps" />
Since updating to v1.6.10 I noticed this line has been removed. This is causing breakage across our CI/CD workflows with code like this:
// my-map.ts
let map: google.maps.Map;
Now erroring with:
"error TS2503: Cannot find namespace 'google'."
Looking through the changelog I can't really see why the line was removed. Was this intentional or an unintentional side effect of a dependency update?
Adding the removed type reference to my-map.ts resolves the issue but it'd be good to know if this is planned to be added back in before I have to go update a load of different projects 😅
Can you check if adding @types/google.maps as a dependency in your project fixes this?
I'm not sure why the reference was there and what happened to it, but if you're using the google maps types in your typescript files, you should also install them yourself and I believe this should also make this error go away.
I have had @types/google.maps (currently 3.58.1) in my project since the beginning and the issue still popped up.
We also already have @types/google.maps added as a dependency in our projects, we added it at the same time as this package.
Thanks, I'll look into it.
I think the line /// <reference types="google.maps" /> lead to the types being available in the global namespace without having to import the types.