Skip to content

Commit 771e4e7

Browse files
authored
fix(gmap): fix gmap types being overriden (#66)
1 parent b930455 commit 771e4e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runtime/components/ScriptGoogleMaps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ onMounted(() => {
144144
})
145145
// create the map
146146
$script.then(async (instance) => {
147-
const maps = await instance.maps as typeof google.maps
147+
const maps = await instance.maps
148148
const _map = new maps.Map(mapEl.value!, options.value)
149149
const placesService = new maps.places.PlacesService(_map)
150150

src/runtime/registry/google-maps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const GoogleMapsOptions = object({
2424
export type GoogleMapsInput = RegistryScriptInput<typeof GoogleMapsOptions>
2525

2626
export interface GoogleMapsApi {
27-
maps: typeof google.maps
27+
maps: typeof window.google.maps
2828
}
2929

3030
declare global {

0 commit comments

Comments
 (0)