@types/mapbox__mapbox-sdk 0.16.2 → 0.16.4

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,8 +8,8 @@ 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: Mon, 05 May 2025 03:26:39 GMT
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)
11
+ * Last updated: Sat, 21 Feb 2026 05:22:18 GMT
12
+ * Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/node](https://npmjs.com/package/@types/node), [mapbox-gl](https://npmjs.com/package/mapbox-gl)
13
13
 
14
14
  # Credits
15
15
  These definitions were written by [Jeff Dye](https://github.com/jeffbdye), [Mike O'Meara](https://github.com/mikeomeara1), [chachan](https://github.com/chachan), [techieshark](https://github.com/techieshark), and [Robin Heinemann](https://github.com/rroohhh).
@@ -1351,7 +1351,6 @@ declare module "@mapbox/mapbox-sdk/services/isochrone" {
1351
1351
 
1352
1352
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1353
1353
  declare module "@mapbox/mapbox-sdk/services/geocoding" {
1354
- import { LngLatLike } from "mapbox-gl";
1355
1354
  // eslint-disable-next-line @definitelytyped/no-self-import
1356
1355
  import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1357
1356
  // eslint-disable-next-line @definitelytyped/no-self-import
@@ -1388,7 +1387,7 @@ declare module "@mapbox/mapbox-sdk/services/geocoding" {
1388
1387
  /**
1389
1388
  * A location. This will be a place name for forward geocoding or a coordinate pair (longitude, latitude) for reverse geocoding.
1390
1389
  */
1391
- query: string | LngLatLike;
1390
+ query: string;
1392
1391
  /**
1393
1392
  * Either mapbox.places for ephemeral geocoding, or mapbox.places-permanent for storing results and batch geocoding.
1394
1393
  */
@@ -1846,9 +1845,16 @@ declare module "@mapbox/mapbox-sdk/services/optimization" {
1846
1845
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
1847
1846
  declare module "@mapbox/mapbox-sdk/services/static" {
1848
1847
  import * as GeoJSON from "geojson";
1849
- import { AnyLayer, LngLatBoundsLike, LngLatLike } from "mapbox-gl";
1848
+ /**
1849
+ * It is now the only remaining place that still requires `mapbox-gl`.
1850
+ *
1851
+ * Since the js source of `mapbox__mapbox-sdk` does not import codes from `mapbox-gl`,
1852
+ * the `AnyLayer` usage can probably be made gone in further PR, so that `mapbox-gl` dependency
1853
+ * is no longer needed in this type lib.
1854
+ */
1855
+ import { LayerSpecification as AnyLayer } from "mapbox-gl";
1850
1856
  // eslint-disable-next-line @definitelytyped/no-self-import
1851
- import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1857
+ import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
1852
1858
  // eslint-disable-next-line @definitelytyped/no-self-import
1853
1859
  import MapiClient, { SdkConfig } from "@mapbox/mapbox-sdk/lib/classes/mapi-client";
1854
1860
 
@@ -1872,7 +1878,7 @@ declare module "@mapbox/mapbox-sdk/services/static" {
1872
1878
  height: number;
1873
1879
  position:
1874
1880
  | {
1875
- coordinates: LngLatLike | "auto";
1881
+ coordinates: Coordinates;
1876
1882
  zoom: number;
1877
1883
  bearing?: number | undefined;
1878
1884
  pitch?: number | undefined;
@@ -1895,7 +1901,7 @@ declare module "@mapbox/mapbox-sdk/services/static" {
1895
1901
  }
1896
1902
 
1897
1903
  interface CustomMarker {
1898
- coordinates: LngLatLike;
1904
+ coordinates: Coordinates;
1899
1905
  url: string;
1900
1906
  }
1901
1907
 
@@ -1904,7 +1910,7 @@ declare module "@mapbox/mapbox-sdk/services/static" {
1904
1910
  }
1905
1911
 
1906
1912
  interface SimpleMarker {
1907
- coordinates: [number, number];
1913
+ coordinates: Coordinates;
1908
1914
  label?: string | undefined;
1909
1915
  color?: string | undefined;
1910
1916
  size?: "large" | "small" | undefined;
@@ -1918,7 +1924,7 @@ declare module "@mapbox/mapbox-sdk/services/static" {
1918
1924
  /**
1919
1925
  * An array of coordinates describing the path.
1920
1926
  */
1921
- coordinates: LngLatBoundsLike[];
1927
+ coordinates: Coordinates[];
1922
1928
  strokeWidth?: number | undefined;
1923
1929
  strokeColor?: string | undefined;
1924
1930
  /**
@@ -2156,17 +2162,17 @@ declare module "@mapbox/mapbox-sdk/services/tilequery" {
2156
2162
  */
2157
2163
  geometry?: GeometryType | undefined;
2158
2164
  /**
2159
- * A comma-separated list of bands to query, rather than querying all bands.
2165
+ * An array of bands to query, rather than querying all bands.
2160
2166
  * If a specified layer does not exist, it is skipped.
2161
2167
  * If no bands exist, returns an empty `FeatureCollection`.
2162
2168
  */
2163
- bands?: string | undefined;
2169
+ bands?: string[] | undefined;
2164
2170
  /**
2165
- * A comma-separated list of layers to query, rather than querying all layers.
2171
+ * An array of layers to query, rather than querying all layers.
2166
2172
  * If a specified layer does not exist, it is skipped.
2167
2173
  * If no layers exist, returns an empty `FeatureCollection`.
2168
2174
  */
2169
- layers?: string | undefined;
2175
+ layers?: string[] | undefined;
2170
2176
  }
2171
2177
 
2172
2178
  interface TileQueryResponseProperty {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/mapbox__mapbox-sdk",
3
- "version": "0.16.2",
3
+ "version": "0.16.4",
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",
@@ -41,10 +41,10 @@
41
41
  "scripts": {},
42
42
  "dependencies": {
43
43
  "@types/geojson": "*",
44
- "@types/mapbox-gl": "*",
45
- "@types/node": "*"
44
+ "@types/node": "*",
45
+ "mapbox-gl": "^3.5.0"
46
46
  },
47
47
  "peerDependencies": {},
48
- "typesPublisherContentHash": "921adb2f949da4b7ee5c4c39486daf20281a4d39696b8ec4973da245505c2708",
49
- "typeScriptVersion": "5.1"
48
+ "typesPublisherContentHash": "8079094e3f6c2f06e4b707c0359f981308f14cbe572be253b173c87b637545ee",
49
+ "typeScriptVersion": "5.2"
50
50
  }