I want to extend a class defined in the namespace google.maps in this file:
@types/googlemaps/index.d.ts
class MyMarker extends google.maps.Marker {
constructor(options: google.maps.MarkerOptions){
super(options);
}
}
This transpiles without errors. But on runtime, I get an error in the constructor because the google.maps global is still undefined.
What am I doing wrong?