@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:
Marko Klopets
2020-01-16 22:33:59 +02:00
committed by Eli Barzilay
parent 17aa94437b
commit b39ef14bdf

View File

@@ -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;