Skip to content

Commit 8df9f9d

Browse files
authored
🤖 Merge PR DefinitelyTyped#72860 Fixed TileQueryRequest bands and layers as string arrays by @Soviut
1 parent 876b842 commit 8df9f9d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎types/mapbox__mapbox-sdk/index.d.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,17 +2156,17 @@ declare module "@mapbox/mapbox-sdk/services/tilequery" {
21562156
*/
21572157
geometry?: GeometryType | undefined;
21582158
/**
2159-
* A comma-separated list of bands to query, rather than querying all bands.
2159+
* An array of bands to query, rather than querying all bands.
21602160
* If a specified layer does not exist, it is skipped.
21612161
* If no bands exist, returns an empty `FeatureCollection`.
21622162
*/
2163-
bands?: string | undefined;
2163+
bands?: string[] | undefined;
21642164
/**
2165-
* A comma-separated list of layers to query, rather than querying all layers.
2165+
* An array of layers to query, rather than querying all layers.
21662166
* If a specified layer does not exist, it is skipped.
21672167
* If no layers exist, returns an empty `FeatureCollection`.
21682168
*/
2169-
layers?: string | undefined;
2169+
layers?: string[] | undefined;
21702170
}
21712171

21722172
interface TileQueryResponseProperty {

‎types/mapbox__mapbox-sdk/mapbox__mapbox-sdk-tests.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ optimizationService.getOptimization({
360360
radius: 0,
361361
limit: 5,
362362
dedupe: true,
363-
bands: "band1,band2",
364-
layers: "layer1,layer2",
363+
bands: ["band1", "band2"],
364+
layers: ["layer1", "layer2"],
365365
} satisfies TileQueryRequest,
366366
);
367367

0 commit comments

Comments
 (0)