From 093e20bbfd147a723f706ee63ec2b062171ace4d Mon Sep 17 00:00:00 2001 From: David Schneider Date: Thu, 13 Apr 2017 16:17:40 -0700 Subject: [PATCH] Update MapControl, MapControlProps. --- types/react-leaflet/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/react-leaflet/index.d.ts b/types/react-leaflet/index.d.ts index 4378f3b324..5f4c6fd2b7 100644 --- a/types/react-leaflet/index.d.ts +++ b/types/react-leaflet/index.d.ts @@ -304,11 +304,11 @@ export namespace LayersControl { export class Overlay

extends ControlledLayer

{ } } -interface MapControlProps { - position?: Leaflet.ControlPosition; -} -export class MapControl extends React.Component { - leafletElement?: L.Control; +export type MapControlProps = Leaflet.ControlOptions; +export class MapControl

extends React.Component { + leafletElement: E; + createLeafletElement(props: P): E; + updateLeafletElement(fromProps: P, toProps: P): void; } interface ScaleControlProps {