@types/mapbox__mapbox-sdk 0.16.0 → 0.16.1
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.
mapbox__mapbox-sdk/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for @mapbox/mapbox-sdk (https://github.co
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-sdk.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 02 Apr 2025 17:02:14 GMT
|
|
12
12
|
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl), [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
|
|
14
14
|
# Credits
|
mapbox__mapbox-sdk/index.d.ts
CHANGED
|
@@ -316,16 +316,10 @@ declare module "@mapbox/mapbox-sdk/services/datasets" {
|
|
|
316
316
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
317
317
|
declare module "@mapbox/mapbox-sdk/services/directions" {
|
|
318
318
|
import * as GeoJSON from "geojson";
|
|
319
|
-
import { LngLatLike } from "mapbox-gl";
|
|
320
319
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
321
320
|
import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
|
|
322
321
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
323
|
-
import {
|
|
324
|
-
Coordinates,
|
|
325
|
-
DirectionsApproach,
|
|
326
|
-
MapboxProfile,
|
|
327
|
-
MapiRequest,
|
|
328
|
-
} from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
322
|
+
import { Coordinates, DirectionsApproach, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
329
323
|
|
|
330
324
|
export default function Directions(config: SdkConfig | MapiClient): DirectionsService;
|
|
331
325
|
|
|
@@ -1122,6 +1116,31 @@ declare module "@mapbox/mapbox-sdk/services/geocoding-v6" {
|
|
|
1122
1116
|
* available and applicable to a given country or area.
|
|
1123
1117
|
*/
|
|
1124
1118
|
context: Context;
|
|
1119
|
+
/**
|
|
1120
|
+
* Feature id. The mapbox_id uniquely identifies a place in the Mapbox search database.
|
|
1121
|
+
* Mapbox ID's are accepted in requests to the Geocoding API as a forward search, and will
|
|
1122
|
+
* return the feature corresponding to that id.
|
|
1123
|
+
*/
|
|
1124
|
+
mapbox_id: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* Formatted string of address_number and street.
|
|
1127
|
+
*/
|
|
1128
|
+
name: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* The canonical or otherwise more common alias for the feature name. For example,
|
|
1131
|
+
* searching for "America" will return "America" as the name, and "United States" as
|
|
1132
|
+
* name_preferred.
|
|
1133
|
+
*/
|
|
1134
|
+
name_preferred?: string;
|
|
1135
|
+
/**
|
|
1136
|
+
* Formatted string of result context: place region country postcode. The part of the result
|
|
1137
|
+
* which comes after name.
|
|
1138
|
+
*/
|
|
1139
|
+
place_formatted?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* Full formatted string of the feature, combining name_preferred and place_formatted.
|
|
1142
|
+
*/
|
|
1143
|
+
full_address?: string;
|
|
1125
1144
|
}
|
|
1126
1145
|
|
|
1127
1146
|
interface Coordinates {
|
|
@@ -1742,7 +1761,7 @@ declare module "@mapbox/mapbox-sdk/services/optimization" {
|
|
|
1742
1761
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1743
1762
|
import { Waypoint } from "@mapbox/mapbox-sdk/services/directions";
|
|
1744
1763
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1745
|
-
import {
|
|
1764
|
+
import { MapboxProfile, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
1746
1765
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1747
1766
|
import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
|
|
1748
1767
|
|
|
@@ -2088,7 +2107,6 @@ declare module "@mapbox/mapbox-sdk/services/styles" {
|
|
|
2088
2107
|
|
|
2089
2108
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
2090
2109
|
declare module "@mapbox/mapbox-sdk/services/tilequery" {
|
|
2091
|
-
import * as mapboxgl from "mapbox-gl";
|
|
2092
2110
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
2093
2111
|
import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
2094
2112
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
mapbox__mapbox-sdk/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/mapbox__mapbox-sdk",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "TypeScript definitions for @mapbox/mapbox-sdk",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-sdk",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@types/mapbox-gl": "*",
|
|
45
45
|
"@types/node": "*"
|
|
46
46
|
},
|
|
47
|
-
"
|
|
48
|
-
"
|
|
47
|
+
"peerDependencies": {},
|
|
48
|
+
"typesPublisherContentHash": "1afce6d6e035194e6d4612fe3fb16ebfedd11edd179624a9bcd0b35c14d68718",
|
|
49
|
+
"typeScriptVersion": "5.1"
|
|
49
50
|
}
|