diff --git a/leaflet/index.d.ts b/leaflet/index.d.ts index 66a18a7e4c..5ca606811a 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; } /**