File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ onMounted(() => {
329
329
immediate: true ,
330
330
})
331
331
onLoaded (async (instance ) => {
332
- mapsApi .value = await instance .maps as any as typeof google . maps // some weird type issue here
332
+ mapsApi .value = await instance .maps
333
333
// may need to transform the center before we can init the map
334
334
const center = options .value .center as string
335
335
const _options: google .maps .MapOptions = {
Original file line number Diff line number Diff line change @@ -25,15 +25,17 @@ export const GoogleMapsOptions = object({
25
25
26
26
export type GoogleMapsInput = RegistryScriptInput < typeof GoogleMapsOptions >
27
27
28
- type MapsNamespace = typeof google . maps
28
+ type MapsNamespace = typeof window . google . maps
29
29
export interface GoogleMapsApi {
30
30
maps : Promise < MapsNamespace >
31
31
}
32
32
33
33
declare global {
34
34
interface Window {
35
35
google : {
36
- maps : MapsNamespace
36
+ maps : {
37
+ __ib__ ( ) : void
38
+ }
37
39
}
38
40
}
39
41
}
You can’t perform that action at this time.
0 commit comments