Currently, I am facing an issue while attempting to call a JavaScript class from TypeScript as the compiler (VS) seems to be having some trouble.
The particular class in question is InfoBox, but unfortunately, I have not been able to locate a TypeScript definition for it.
Every time I try to utilize it from my TypeScript class, I receive an error stating that it cannot find the name "InfoBox".
public showInfoWindow(latLng: google.maps.LatLng, map: google.maps.Map): InfoBox {
var infobox = new InfoBox({
// ...
}
return infobox;
}
In the InfoBox.js file, it is defined using the prototype
method in this manner
function InfoBox(opt_opts) { ... }
InfoBox.prototype = new google.maps.OverlayView();