diff --git a/types/react-leaflet/index.d.ts b/types/react-leaflet/index.d.ts index 94cc1619af..07b4b11ba6 100644 --- a/types/react-leaflet/index.d.ts +++ b/types/react-leaflet/index.d.ts @@ -245,10 +245,10 @@ export interface PolylineProps extends PathProps { } export class Polyline

extends Path { } -interface PolygonProps extends PathProps { +export interface PolygonProps extends PathProps { positions: Leaflet.LatLngExpression[] | Leaflet.LatLngExpression[][] | Leaflet.LatLngExpression[][][]; } -export const Polygon: React.ComponentClass; +export class Polygon

extends Path { } interface RectangleProps extends PathProps { bounds: Leaflet.LatLngBoundsExpression;