@types/mapbox__mapbox-sdk 0.13.4 → 0.13.6
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: Mon, 11 Sep 2023 15:33:20 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
|
* Global values: none
|
|
14
14
|
|
mapbox__mapbox-sdk/index.d.ts
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
/// <reference types="node" />
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
13
14
|
declare module '@mapbox/mapbox-sdk/lib/classes/mapi-client' {
|
|
15
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
14
16
|
import { MapiRequest, MapiRequestOptions } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
15
17
|
export default class MapiClient {
|
|
16
18
|
constructor(config: SdkConfig);
|
|
@@ -25,9 +27,13 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-client' {
|
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
28
31
|
declare module '@mapbox/mapbox-sdk/lib/classes/mapi-request' {
|
|
32
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
29
33
|
import { MapiResponse } from '@mapbox/mapbox-sdk/lib/classes/mapi-response';
|
|
34
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
30
35
|
import MapiClient from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
36
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
31
37
|
import { MapiError } from '@mapbox/mapbox-sdk/lib/classes/mapi-error';
|
|
32
38
|
|
|
33
39
|
interface EventEmitter<T> {
|
|
@@ -127,7 +133,9 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-request' {
|
|
|
127
133
|
type DirectionsApproach = 'unrestricted' | 'curb';
|
|
128
134
|
}
|
|
129
135
|
|
|
136
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
130
137
|
declare module '@mapbox/mapbox-sdk/lib/classes/mapi-response' {
|
|
138
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
131
139
|
import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
132
140
|
|
|
133
141
|
interface MapiResponse<T = any> {
|
|
@@ -160,7 +168,9 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-response' {
|
|
|
160
168
|
}
|
|
161
169
|
}
|
|
162
170
|
|
|
171
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
163
172
|
declare module '@mapbox/mapbox-sdk/lib/classes/mapi-error' {
|
|
173
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
164
174
|
import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
165
175
|
|
|
166
176
|
interface MapiError<T = any> {
|
|
@@ -188,8 +198,11 @@ declare module '@mapbox/mapbox-sdk/lib/classes/mapi-error' {
|
|
|
188
198
|
}
|
|
189
199
|
}
|
|
190
200
|
|
|
201
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
191
202
|
declare module '@mapbox/mapbox-sdk/services/datasets' {
|
|
203
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
192
204
|
import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
205
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
193
206
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
194
207
|
|
|
195
208
|
/*********************************************************************************************************************
|
|
@@ -298,10 +311,13 @@ declare module '@mapbox/mapbox-sdk/services/datasets' {
|
|
|
298
311
|
}
|
|
299
312
|
}
|
|
300
313
|
|
|
314
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
301
315
|
declare module '@mapbox/mapbox-sdk/services/directions' {
|
|
302
316
|
import * as GeoJSON from 'geojson';
|
|
303
317
|
import { LngLatLike } from 'mapbox-gl';
|
|
318
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
304
319
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
320
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
305
321
|
import {
|
|
306
322
|
MapiRequest,
|
|
307
323
|
MapboxProfile,
|
|
@@ -804,9 +820,12 @@ declare module '@mapbox/mapbox-sdk/services/directions' {
|
|
|
804
820
|
}
|
|
805
821
|
}
|
|
806
822
|
|
|
823
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
807
824
|
declare module '@mapbox/mapbox-sdk/services/geocoding' {
|
|
808
825
|
import { LngLatLike } from 'mapbox-gl';
|
|
826
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
809
827
|
import { MapiRequest, Coordinates } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
828
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
810
829
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
811
830
|
|
|
812
831
|
/*********************************************************************************************************************
|
|
@@ -935,6 +954,10 @@ declare module '@mapbox/mapbox-sdk/services/geocoding' {
|
|
|
935
954
|
* A string representing the feature in the requested language, if specified.
|
|
936
955
|
*/
|
|
937
956
|
text: string;
|
|
957
|
+
/**
|
|
958
|
+
* The ISO 3166-1 country and ISO 3166-2 region code for the feature.
|
|
959
|
+
*/
|
|
960
|
+
short_code?: string;
|
|
938
961
|
/**
|
|
939
962
|
* A string representing the feature in the requested language, if specified, and its full result hierarchy.
|
|
940
963
|
*/
|
|
@@ -1019,19 +1042,23 @@ declare module '@mapbox/mapbox-sdk/services/geocoding' {
|
|
|
1019
1042
|
}
|
|
1020
1043
|
}
|
|
1021
1044
|
|
|
1045
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1022
1046
|
declare module '@mapbox/mapbox-sdk/services/map-matching' {
|
|
1047
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1023
1048
|
import {
|
|
1024
1049
|
DirectionsAnnotation,
|
|
1025
1050
|
DirectionsGeometry,
|
|
1026
1051
|
DirectionsOverview,
|
|
1027
1052
|
Leg,
|
|
1028
1053
|
} from '@mapbox/mapbox-sdk/services/directions';
|
|
1054
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1029
1055
|
import {
|
|
1030
1056
|
MapiRequest,
|
|
1031
1057
|
MapboxProfile,
|
|
1032
1058
|
DirectionsApproach,
|
|
1033
1059
|
Coordinates,
|
|
1034
1060
|
} from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1061
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1035
1062
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1036
1063
|
|
|
1037
1064
|
/*********************************************************************************************************************
|
|
@@ -1155,10 +1182,15 @@ declare module '@mapbox/mapbox-sdk/services/map-matching' {
|
|
|
1155
1182
|
}
|
|
1156
1183
|
}
|
|
1157
1184
|
|
|
1185
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1158
1186
|
declare module '@mapbox/mapbox-sdk/services/matrix' {
|
|
1187
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1159
1188
|
import { DirectionsAnnotation } from '@mapbox/mapbox-sdk/services/directions';
|
|
1189
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1160
1190
|
import { Point } from '@mapbox/mapbox-sdk/services/map-matching';
|
|
1191
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1161
1192
|
import { MapiRequest, MapboxProfile } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1193
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1162
1194
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1163
1195
|
|
|
1164
1196
|
/*********************************************************************************************************************
|
|
@@ -1196,9 +1228,13 @@ declare module '@mapbox/mapbox-sdk/services/matrix' {
|
|
|
1196
1228
|
}
|
|
1197
1229
|
}
|
|
1198
1230
|
|
|
1231
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1199
1232
|
declare module '@mapbox/mapbox-sdk/services/optimization' {
|
|
1233
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1200
1234
|
import { Waypoint } from '@mapbox/mapbox-sdk/services/directions';
|
|
1235
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1201
1236
|
import { MapiRequest, MapboxProfile, DirectionsApproach } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1237
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1202
1238
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1203
1239
|
|
|
1204
1240
|
/*********************************************************************************************************************
|
|
@@ -1278,9 +1314,12 @@ declare module '@mapbox/mapbox-sdk/services/optimization' {
|
|
|
1278
1314
|
type OptimizationAnnotation = 'duration' | 'speed' | 'distance';
|
|
1279
1315
|
}
|
|
1280
1316
|
|
|
1317
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1281
1318
|
declare module '@mapbox/mapbox-sdk/services/static' {
|
|
1282
1319
|
import { LngLatLike, LngLatBoundsLike, AnyLayer } from 'mapbox-gl';
|
|
1320
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1283
1321
|
import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1322
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1284
1323
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1285
1324
|
|
|
1286
1325
|
/*********************************************************************************************************************
|
|
@@ -1370,8 +1409,11 @@ declare module '@mapbox/mapbox-sdk/services/static' {
|
|
|
1370
1409
|
}
|
|
1371
1410
|
}
|
|
1372
1411
|
|
|
1412
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1373
1413
|
declare module '@mapbox/mapbox-sdk/services/styles' {
|
|
1414
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1374
1415
|
import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1416
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1375
1417
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1376
1418
|
|
|
1377
1419
|
/*********************************************************************************************************************
|
|
@@ -1528,9 +1570,12 @@ declare module '@mapbox/mapbox-sdk/services/styles' {
|
|
|
1528
1570
|
}
|
|
1529
1571
|
}
|
|
1530
1572
|
|
|
1573
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1531
1574
|
declare module '@mapbox/mapbox-sdk/services/tilequery' {
|
|
1532
1575
|
import * as mapboxgl from 'mapbox-gl';
|
|
1576
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1533
1577
|
import { MapiRequest, Coordinates } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1578
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1534
1579
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1535
1580
|
|
|
1536
1581
|
/*********************************************************************************************************************
|
|
@@ -1577,8 +1622,11 @@ declare module '@mapbox/mapbox-sdk/services/tilequery' {
|
|
|
1577
1622
|
type GeometryType = 'polygon' | 'linestring' | 'point';
|
|
1578
1623
|
}
|
|
1579
1624
|
|
|
1625
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1580
1626
|
declare module '@mapbox/mapbox-sdk/services/tilesets' {
|
|
1627
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1581
1628
|
import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1629
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1582
1630
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1583
1631
|
|
|
1584
1632
|
/*********************************************************************************************************************
|
|
@@ -1648,8 +1696,11 @@ declare module '@mapbox/mapbox-sdk/services/tilesets' {
|
|
|
1648
1696
|
}
|
|
1649
1697
|
}
|
|
1650
1698
|
|
|
1699
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1651
1700
|
declare module '@mapbox/mapbox-sdk/services/tokens' {
|
|
1701
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1652
1702
|
import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1703
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1653
1704
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1654
1705
|
|
|
1655
1706
|
/*********************************************************************************************************************
|
|
@@ -1759,8 +1810,11 @@ declare module '@mapbox/mapbox-sdk/services/tokens' {
|
|
|
1759
1810
|
}
|
|
1760
1811
|
}
|
|
1761
1812
|
|
|
1813
|
+
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1762
1814
|
declare module '@mapbox/mapbox-sdk/services/uploads' {
|
|
1815
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1763
1816
|
import { MapiRequest } from '@mapbox/mapbox-sdk/lib/classes/mapi-request';
|
|
1817
|
+
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1764
1818
|
import MapiClient, { SdkConfig } from '@mapbox/mapbox-sdk/lib/classes/mapi-client';
|
|
1765
1819
|
|
|
1766
1820
|
/*********************************************************************************************************************
|
mapbox__mapbox-sdk/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/mapbox__mapbox-sdk",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.6",
|
|
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,6 @@
|
|
|
44
44
|
"@types/mapbox-gl": "*",
|
|
45
45
|
"@types/node": "*"
|
|
46
46
|
},
|
|
47
|
-
"typesPublisherContentHash": "
|
|
48
|
-
"typeScriptVersion": "3
|
|
47
|
+
"typesPublisherContentHash": "dbf35fc385e049475144d3b3e2eb5e2fa7811fc8e47c5e6d3ae7b780befbf9e5",
|
|
48
|
+
"typeScriptVersion": "4.3"
|
|
49
49
|
}
|