mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
@types/mapbox-gl: Allow null as filter argument (#41447)
* fix: allow null in mapbox-gl setfilter * docs: add self to mapbox-gl definition author list
This commit is contained in:
committed by
Eli Barzilay
parent
17aa94437b
commit
b39ef14bdf
5
types/mapbox-gl/index.d.ts
vendored
5
types/mapbox-gl/index.d.ts
vendored
@@ -6,6 +6,7 @@
|
||||
// Dmytro Gokun <https://github.com/dmytro-gokun>
|
||||
// Liam Clarke <https://github.com/LiamAttClarke>
|
||||
// Vladimir Dashukevich <https://github.com/life777>
|
||||
// Marko Klopets <https://github.com/mklopets>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.0
|
||||
|
||||
@@ -193,7 +194,7 @@ declare namespace mapboxgl {
|
||||
|
||||
getLayer(id: string): mapboxgl.Layer;
|
||||
|
||||
setFilter(layer: string, filter?: any[]): this;
|
||||
setFilter(layer: string, filter?: any[] | null): this;
|
||||
|
||||
setLayerZoomRange(layerId: string, minzoom: number, maxzoom: number): this;
|
||||
|
||||
@@ -511,7 +512,7 @@ declare namespace mapboxgl {
|
||||
|
||||
/**
|
||||
* If specified, map will use this token instead of the one defined in mapboxgl.accessToken.
|
||||
*
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
accessToken?: string;
|
||||
|
||||
Reference in New Issue
Block a user