-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.d.ts
More file actions
70 lines (60 loc) · 1.78 KB
/
Copy pathenv.d.ts
File metadata and controls
70 lines (60 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string
readonly VITE_APP_URL?: string
readonly VITE_API_URL: string
readonly VITE_SUPABASE_URL?: string
readonly VITE_SUPABASE_ANON_KEY?: string
readonly VITE_AMAP_KEY?: string
readonly VITE_BAIDU_MAP_KEY?: string
readonly VITE_GOOGLE_MAPS_KEY?: string
readonly VITE_MAP_PROVIDER?: string
readonly VITE_MAP_DEFAULT_ZOOM?: string
readonly VITE_MAP_USER_ZOOM?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
interface GoogleMapsPlaceGeometry {
location?: { lat: () => number; lng: () => number }
}
interface GoogleMapsPlaceResult {
name?: string
formatted_address?: string
geometry?: GoogleMapsPlaceGeometry
}
interface GoogleMapsPlacesService {
textSearch(
request: { query: string; location?: { lat: number; lng: number }; radius?: number },
callback: (results: GoogleMapsPlaceResult[] | null, status: string) => void
): void
}
interface GoogleMapsPlacesLibrary {
PlacesService: new (element: HTMLElement) => GoogleMapsPlacesService
PlacesServiceStatus: { OK: string }
}
interface GoogleMapsNamespace {
maps: {
places: GoogleMapsPlacesLibrary
}
}
interface Window {
google?: GoogleMapsNamespace & {
maps?: GoogleMapsNamespace['maps'] & {
Map?: unknown
}
}
__gmapsPlacesInit?: () => void
__workworkGmapsReady?: () => void
}
declare module 'leaflet.gridlayer.googlemutant/src/Leaflet.GoogleMutant.mjs' {
import { GridLayer } from 'leaflet'
export default class GoogleMutant extends GridLayer {
constructor(options?: { type?: string; styles?: unknown[]; maxZoom?: number })
}
}