Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions src/runtime/registry/google-maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ import { useRegistryScript } from '../utils'
import { array, literal, object, optional, string, union } from '#nuxt-scripts-validator'
import type { RegistryScriptInput } from '#nuxt-scripts'

// eslint-disable-next-line ts/no-namespace
declare namespace google {
// eslint-disable-next-line ts/no-namespace
export namespace maps {
/**
* @internal
*/
export function __ib__(): void
}
}

export const GoogleMapsOptions = object({
apiKey: string(),
libraries: optional(array(string())),
Expand All @@ -12,13 +23,6 @@ export const GoogleMapsOptions = object({

export type GoogleMapsInput = RegistryScriptInput<typeof GoogleMapsOptions>

// eslint-disable-next-line ts/no-namespace
declare namespace google.maps {
/**
* @internal
*/
export function __ib__(): void
}
export interface GoogleMapsApi {
maps: typeof google.maps
}
Expand Down