@types/mapbox__mapbox-sdk 0.16.1 → 0.16.3

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.
@@ -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: Wed, 02 Apr 2025 17:02:14 GMT
11
+ * Last updated: Mon, 26 May 2025 05:36:34 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
@@ -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
@@ -1844,6 +1845,7 @@ declare module "@mapbox/mapbox-sdk/services/optimization" {
1844
1845
 
1845
1846
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1846
1847
  declare module "@mapbox/mapbox-sdk/services/static" {
1848
+ import * as GeoJSON from "geojson";
1847
1849
  import { AnyLayer, LngLatBoundsLike, LngLatLike } from "mapbox-gl";
1848
1850
  // eslint-disable-next-line @definitelytyped/no-self-import
1849
1851
  import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
@@ -2107,6 +2109,7 @@ declare module "@mapbox/mapbox-sdk/services/styles" {
2107
2109
 
2108
2110
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
2109
2111
  declare module "@mapbox/mapbox-sdk/services/tilequery" {
2112
+ import * as GeoJSON from "geojson";
2110
2113
  // eslint-disable-next-line @definitelytyped/no-self-import
2111
2114
  import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
2112
2115
  // eslint-disable-next-line @definitelytyped/no-self-import
@@ -2122,7 +2125,9 @@ declare module "@mapbox/mapbox-sdk/services/tilequery" {
2122
2125
  * Get a static map image..
2123
2126
  * @param request
2124
2127
  */
2125
- listFeatures(request: TileQueryRequest): MapiRequest;
2128
+ listFeatures(
2129
+ request: TileQueryRequest,
2130
+ ): MapiRequest<GeoJSON.FeatureCollection<GeoJSON.Point, TileQueryResponseProperty>>;
2126
2131
  }
2127
2132
 
2128
2133
  interface TileQueryRequest {
@@ -2150,9 +2155,29 @@ declare module "@mapbox/mapbox-sdk/services/tilequery" {
2150
2155
  * Queries for a specific geometry type.
2151
2156
  */
2152
2157
  geometry?: GeometryType | undefined;
2158
+ /**
2159
+ * An array 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
+ * An array 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
+ */
2153
2169
  layers?: string[] | undefined;
2154
2170
  }
2155
2171
 
2172
+ interface TileQueryResponseProperty {
2173
+ tilequery: {
2174
+ distance: number;
2175
+ geometry: GeometryType;
2176
+ layer: string;
2177
+ };
2178
+ [name: string]: any;
2179
+ }
2180
+
2156
2181
  type GeometryType = "polygon" | "linestring" | "point";
2157
2182
  }
2158
2183
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/mapbox__mapbox-sdk",
3
- "version": "0.16.1",
3
+ "version": "0.16.3",
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",
@@ -45,6 +45,6 @@
45
45
  "@types/node": "*"
46
46
  },
47
47
  "peerDependencies": {},
48
- "typesPublisherContentHash": "1afce6d6e035194e6d4612fe3fb16ebfedd11edd179624a9bcd0b35c14d68718",
48
+ "typesPublisherContentHash": "71c0281be7dcafab6ab64c2ac21b8318351cf578206250d74bcb43dacf4aff35",
49
49
  "typeScriptVersion": "5.1"
50
50
  }