Skip to content

Commit

Permalink
Allow L.geoJSON to accept geojson.GeoJsonObject[], fixing DefinitelyT…
Browse files Browse the repository at this point in the history
  • Loading branch information
someonewithpc committed Jul 20, 2022
1 parent aee834d commit ed15e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/leaflet/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ export class GeoJSON<P = any> extends FeatureGroup<P> {
* map (you can alternatively add it later with addData method) and
* an options object.
*/
export function geoJSON<P = any>(geojson?: geojson.GeoJsonObject, options?: GeoJSONOptions<P>): GeoJSON<P>;
export function geoJSON<P = any>(geojson?: geojson.GeoJsonObject | geojson.GeoJsonObject[], options?: GeoJSONOptions<P>): GeoJSON<P>;

export type Zoom = boolean | 'center';

Expand Down

0 comments on commit ed15e26

Please sign in to comment.