From b39ef14bdfb2fd0b91c62d74c9b05a973c5c080d Mon Sep 17 00:00:00 2001 From: Marko Klopets Date: Thu, 16 Jan 2020 22:33:59 +0200 Subject: [PATCH] @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 --- types/mapbox-gl/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index 1c5e93c87b..bc7426743f 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -6,6 +6,7 @@ // Dmytro Gokun // Liam Clarke // Vladimir Dashukevich +// Marko Klopets // 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;