diff --git a/types/react-leaflet/index.d.ts b/types/react-leaflet/index.d.ts index fe1afe8171..a2050ba46f 100644 --- a/types/react-leaflet/index.d.ts +++ b/types/react-leaflet/index.d.ts @@ -77,6 +77,17 @@ type LeafletEvents = LeafletLayerEvents & LeafletOtherEvents & LeafletDraggingEvents; +type MapComponentProps = React.HTMLProps & LeafletEvents; + +export class MapComponent

extends React.Component { + _leafletEvents: LeafletEvents; + leafletElement: E; + extractLeafletEvents(props: P): LeafletEvents; + bindLeafletEvents(next: LeafletEvents, prev: LeafletEvents): LeafletEvents; + fireLeafletEvent(type: string, data: any): void; + getOptions(props: P): P; +} + interface MapProps extends React.HTMLProps, LeafletLayerEvents, LeafletMapStateChangeEvents, LeafletPopupEvents, LeafletTooltipEvents, LeafletLocationEvents, LeafletInteractionEvents, LeafletOtherEvents, Leaflet.MapOptions { animate?: boolean;