UNPKG

places-autocomplete-svelte

Version:

A flexible, accessible, and secure Svelte component leveraging the Google Maps Places Autocomplete API (New) to provide a user-friendly way to search for and retrieve detailed address information.

12 lines (11 loc) 460 B
import * as GMaps from '@googlemaps/js-api-loader'; /** * Defines the shape of the context object that will be shared. * This can be expanded if you need to share more than just the loader. */ export type GMapsLoaderType = GMaps.Loader; /** * Gets the Google Maps Loader instance from Svelte's context. * @returns {typeof Loader} */ export declare const getGMapsLoader: (PUBLIC_GOOGLE_MAPS_API_KEY: string, version?: string | undefined) => GMaps.Loader;