Reputation: 11888
I am using the ng2-map library which requires the @types/googlemaps to be defined. I did add a reference to the googlemaps' index.d.ts
in my browser.d.ts
///<reference path="./googlemaps/index.d.ts"/>
Despite this, I am having many typescript errors saying :
TS2688 Cannot find type definition file for 'googlemaps'
/// <reference types="googlemaps"
Where should I define the googlemaps type so that my library would know about it ? Apparently putting it in my main browser.d.ts
isn't enough.
Upvotes: 1
Views: 217
Reputation: 366
I face the same problem. You can solve it by upgrading to new version. Now ng2-map
has been renamed as @ngui/map
, as you can see in changelog.
0.17.0 (2017-03-29)
renamed module to @ngui/map
Please read the page below to see instructions:
Upvotes: 2