@types/mapbox__mapbox-sdk 0.16.0 → 0.16.2
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 +1 -1
- mapbox__mapbox-sdk/index.d.ts +54 -11
- mapbox__mapbox-sdk/package.json +4 -3
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: Mon, 05 May 2025 03:26:39 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
|
@@ -198,6 +198,7 @@ declare module "@mapbox/mapbox-sdk/lib/classes/mapi-error" {
|
|
|
198
198
|
|
|
199
199
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
200
200
|
declare module "@mapbox/mapbox-sdk/services/datasets" {
|
|
201
|
+
import * as GeoJSON from "geojson";
|
|
201
202
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
202
203
|
import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
203
204
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
@@ -316,16 +317,10 @@ declare module "@mapbox/mapbox-sdk/services/datasets" {
|
|
|
316
317
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
317
318
|
declare module "@mapbox/mapbox-sdk/services/directions" {
|
|
318
319
|
import * as GeoJSON from "geojson";
|
|
319
|
-
import { LngLatLike } from "mapbox-gl";
|
|
320
320
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
321
321
|
import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
|
|
322
322
|
// 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";
|
|
323
|
+
import { Coordinates, DirectionsApproach, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
329
324
|
|
|
330
325
|
export default function Directions(config: SdkConfig | MapiClient): DirectionsService;
|
|
331
326
|
|
|
@@ -1122,6 +1117,31 @@ declare module "@mapbox/mapbox-sdk/services/geocoding-v6" {
|
|
|
1122
1117
|
* available and applicable to a given country or area.
|
|
1123
1118
|
*/
|
|
1124
1119
|
context: Context;
|
|
1120
|
+
/**
|
|
1121
|
+
* Feature id. The mapbox_id uniquely identifies a place in the Mapbox search database.
|
|
1122
|
+
* Mapbox ID's are accepted in requests to the Geocoding API as a forward search, and will
|
|
1123
|
+
* return the feature corresponding to that id.
|
|
1124
|
+
*/
|
|
1125
|
+
mapbox_id: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* Formatted string of address_number and street.
|
|
1128
|
+
*/
|
|
1129
|
+
name: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* The canonical or otherwise more common alias for the feature name. For example,
|
|
1132
|
+
* searching for "America" will return "America" as the name, and "United States" as
|
|
1133
|
+
* name_preferred.
|
|
1134
|
+
*/
|
|
1135
|
+
name_preferred?: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* Formatted string of result context: place region country postcode. The part of the result
|
|
1138
|
+
* which comes after name.
|
|
1139
|
+
*/
|
|
1140
|
+
place_formatted?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* Full formatted string of the feature, combining name_preferred and place_formatted.
|
|
1143
|
+
*/
|
|
1144
|
+
full_address?: string;
|
|
1125
1145
|
}
|
|
1126
1146
|
|
|
1127
1147
|
interface Coordinates {
|
|
@@ -1742,7 +1762,7 @@ declare module "@mapbox/mapbox-sdk/services/optimization" {
|
|
|
1742
1762
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1743
1763
|
import { Waypoint } from "@mapbox/mapbox-sdk/services/directions";
|
|
1744
1764
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1745
|
-
import {
|
|
1765
|
+
import { MapboxProfile, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
1746
1766
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1747
1767
|
import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
|
|
1748
1768
|
|
|
@@ -1825,6 +1845,7 @@ declare module "@mapbox/mapbox-sdk/services/optimization" {
|
|
|
1825
1845
|
|
|
1826
1846
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1827
1847
|
declare module "@mapbox/mapbox-sdk/services/static" {
|
|
1848
|
+
import * as GeoJSON from "geojson";
|
|
1828
1849
|
import { AnyLayer, LngLatBoundsLike, LngLatLike } from "mapbox-gl";
|
|
1829
1850
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1830
1851
|
import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
@@ -2088,7 +2109,7 @@ declare module "@mapbox/mapbox-sdk/services/styles" {
|
|
|
2088
2109
|
|
|
2089
2110
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
2090
2111
|
declare module "@mapbox/mapbox-sdk/services/tilequery" {
|
|
2091
|
-
import * as
|
|
2112
|
+
import * as GeoJSON from "geojson";
|
|
2092
2113
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
2093
2114
|
import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
2094
2115
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
@@ -2104,7 +2125,9 @@ declare module "@mapbox/mapbox-sdk/services/tilequery" {
|
|
|
2104
2125
|
* Get a static map image..
|
|
2105
2126
|
* @param request
|
|
2106
2127
|
*/
|
|
2107
|
-
listFeatures(
|
|
2128
|
+
listFeatures(
|
|
2129
|
+
request: TileQueryRequest,
|
|
2130
|
+
): MapiRequest<GeoJSON.FeatureCollection<GeoJSON.Point, TileQueryResponseProperty>>;
|
|
2108
2131
|
}
|
|
2109
2132
|
|
|
2110
2133
|
interface TileQueryRequest {
|
|
@@ -2132,7 +2155,27 @@ declare module "@mapbox/mapbox-sdk/services/tilequery" {
|
|
|
2132
2155
|
* Queries for a specific geometry type.
|
|
2133
2156
|
*/
|
|
2134
2157
|
geometry?: GeometryType | undefined;
|
|
2135
|
-
|
|
2158
|
+
/**
|
|
2159
|
+
* A comma-separated list of bands to query, rather than querying all bands.
|
|
2160
|
+
* If a specified layer does not exist, it is skipped.
|
|
2161
|
+
* If no bands exist, returns an empty `FeatureCollection`.
|
|
2162
|
+
*/
|
|
2163
|
+
bands?: string | undefined;
|
|
2164
|
+
/**
|
|
2165
|
+
* A comma-separated list of layers to query, rather than querying all layers.
|
|
2166
|
+
* If a specified layer does not exist, it is skipped.
|
|
2167
|
+
* If no layers exist, returns an empty `FeatureCollection`.
|
|
2168
|
+
*/
|
|
2169
|
+
layers?: string | undefined;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
interface TileQueryResponseProperty {
|
|
2173
|
+
tilequery: {
|
|
2174
|
+
distance: number;
|
|
2175
|
+
geometry: GeometryType;
|
|
2176
|
+
layer: string;
|
|
2177
|
+
};
|
|
2178
|
+
[name: string]: any;
|
|
2136
2179
|
}
|
|
2137
2180
|
|
|
2138
2181
|
type GeometryType = "polygon" | "linestring" | "point";
|
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.2",
|
|
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": "921adb2f949da4b7ee5c4c39486daf20281a4d39696b8ec4973da245505c2708",
|
|
49
|
+
"typeScriptVersion": "5.1"
|
|
49
50
|
}
|