From de7f8ef988b50f112b197950c8cbf2e62896505a Mon Sep 17 00:00:00 2001 From: David Schneider Date: Thu, 13 Apr 2017 16:11:48 -0700 Subject: [PATCH] Update Polygon, PolygonProps. --- types/react-leaflet/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;