diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 8402d8bc9b..c6b97e3b28 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -817,7 +817,7 @@ export interface GeoJSONOptions

extends LayerOptions { pointToLayer?(geoJsonPoint: geojson.Feature, latlng: LatLng): Layer; // should import GeoJSON typings /** - * A Function defining the Path options for styling GeoJSON lines and polygons, + * PathOptions or a Function defining the Path options for styling GeoJSON lines and polygons, * called internally when data is added. * * The default value is to not override any defaults: @@ -828,7 +828,7 @@ export interface GeoJSONOptions

extends LayerOptions { * } * ``` */ - style?: StyleFunction

; + style?: PathOptions | StyleFunction

; /** * A Function that will be called once for each created Feature, after it