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 {