From 220b2c7aded9659f0b5ce4a3c2ef074effae7031 Mon Sep 17 00:00:00 2001 From: anwalkers Date: Wed, 8 Feb 2017 18:31:05 -0800 Subject: [PATCH] Fix leaflet to compile with latest TypeScript v2.1.6. --- leaflet/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaflet/index.d.ts b/leaflet/index.d.ts index bf6f9103a1..f6f256e388 100644 --- a/leaflet/index.d.ts +++ b/leaflet/index.d.ts @@ -689,7 +689,7 @@ declare namespace L { /** * Returns a GeoJSON representation of the layer group (as a GeoJSON GeometryCollection, GeoJSONFeatureCollection or Multipoint). */ - toGeoJSON(): GeoJSONFeatureCollection | GeoJSONFeature; + toGeoJSON(): GeoJSONFeatureCollection | GeoJSONFeature | GeoJSONGeometryCollection; /** * Adds the given layer to the group. @@ -743,7 +743,7 @@ declare namespace L { */ getLayerId(layer: Layer): number; - feature: GeoJSONFeatureCollection | GeoJSONFeature; + feature: GeoJSONFeatureCollection | GeoJSONFeature | GeoJSONGeometryCollection; } /**