@types/mapbox__mapbox-gl-geocoder 4.7.4 → 4.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
File without changes
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for @mapbox/mapbox-gl-geocoder (https://g
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-gl-geocoder.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 27 Sep 2023 09:42:15 GMT
|
|
12
12
|
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl)
|
|
13
13
|
* Global values: `MapboxGeocoder`
|
|
14
14
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
/// <reference types="geojson" />
|
|
8
8
|
|
|
9
|
-
import mapboxgl = require(
|
|
9
|
+
import mapboxgl = require("mapbox-gl");
|
|
10
10
|
|
|
11
11
|
export as namespace MapboxGeocoder;
|
|
12
12
|
export = MapboxGeocoder;
|
|
@@ -112,10 +112,12 @@ declare namespace MapboxGeocoder {
|
|
|
112
112
|
* A function accepting the query string and current features list which performs geocoding to supplement results from the Mapbox Geocoding API.
|
|
113
113
|
* Expected to return a Promise which resolves to an Array of GeoJSON Features in the [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) format.
|
|
114
114
|
*/
|
|
115
|
-
externalGeocoder?:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
externalGeocoder?:
|
|
116
|
+
| ((
|
|
117
|
+
searchInput: string,
|
|
118
|
+
features: GeoJSON.FeatureCollection<GeoJSON.Geometry>,
|
|
119
|
+
) => Promise<GeoJSON.FeatureCollection>)
|
|
120
|
+
| undefined;
|
|
119
121
|
/**
|
|
120
122
|
* If `true`, enable reverse geocoding mode. In reverse geocoding, search input is expected to be coordinates in the form `lat, lon`, with suggestions being the reverse geocodes.
|
|
121
123
|
* (optional, default false)
|
|
@@ -147,7 +149,7 @@ declare namespace MapboxGeocoder {
|
|
|
147
149
|
* A string specifying the geocoding [endpoint](https://docs.mapbox.com/api/search/#endpoints) to query.
|
|
148
150
|
* Options are `mapbox.places` and `mapbox.places`. The `mapbox.places-permanent` mode requires an enterprise license for permanent geocodes. (optional, default "mapbox.places")
|
|
149
151
|
*/
|
|
150
|
-
mode?:
|
|
152
|
+
mode?: "mapbox.places" | "mapbox.places-permanent" | undefined;
|
|
151
153
|
/**
|
|
152
154
|
* A function accepting the query string which performs local geocoding to supplement results from the Mapbox Geocoding API.
|
|
153
155
|
* Expected to return an Array of GeoJSON Features in the [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) format.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/mapbox__mapbox-gl-geocoder",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.5",
|
|
4
4
|
"description": "TypeScript definitions for @mapbox/mapbox-gl-geocoder",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-gl-geocoder",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"@types/geojson": "*",
|
|
29
29
|
"@types/mapbox-gl": "*"
|
|
30
30
|
},
|
|
31
|
-
"typesPublisherContentHash": "
|
|
32
|
-
"typeScriptVersion": "4.
|
|
31
|
+
"typesPublisherContentHash": "5b657e2e74e3da607fcbfba63a1feeef7afa9863a586e0f8bdec2ab52f47324f",
|
|
32
|
+
"typeScriptVersion": "4.5"
|
|
33
33
|
}
|