From c66733739b24960ab653a9cd536ade06bb3d0d1b Mon Sep 17 00:00:00 2001 From: Geir Sagberg Date: Tue, 30 Sep 2014 15:32:12 +0200 Subject: [PATCH 1/2] Change doubleClickZoom to any type Was getting an error when setting doubleClickZoom to a boolean, which is valid. --- leaflet/leaflet.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index f094f4734d..7c8f0a160f 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -2430,7 +2430,7 @@ declare module L { * * Default value: true. */ - doubleClickZoom?: string; + doubleClickZoom?: any; //doubleClickZoom?: boolean; //doubleClickZoom?: string; From 7bf79bf1e6a11f52240b1ce1e9ecc4890c87e555 Mon Sep 17 00:00:00 2001 From: Geir Sagberg Date: Wed, 1 Oct 2014 21:51:09 +0200 Subject: [PATCH 2/2] Changed doubleClickZoom and scrollWheelZoom Set type to 'boolean' to match docs. --- leaflet/leaflet.d.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 7c8f0a160f..511f49b0e1 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -2418,9 +2418,7 @@ declare module L { * * Default value: true. */ - scrollWheelZoom?: any; - //scrollWheelZoom?: boolean; - //scrollWheelZoom?: string; + scrollWheelZoom?: boolean; /** * Whether the map can be zoomed in by double clicking on it and zoomed out @@ -2430,9 +2428,7 @@ declare module L { * * Default value: true. */ - doubleClickZoom?: any; - //doubleClickZoom?: boolean; - //doubleClickZoom?: string; + doubleClickZoom?: boolean; /** * Whether the map can be zoomed to a rectangular area specified by dragging