diff --git a/types/react-leaflet/index.d.ts b/types/react-leaflet/index.d.ts index a4985a0ad7..91ef83bee2 100644 --- a/types/react-leaflet/index.d.ts +++ b/types/react-leaflet/index.d.ts @@ -115,12 +115,22 @@ export class Map

extends MapComponent shouldUpdateBounds(next: Leaflet.LatLngBoundsExpression, prev: Leaflet.LatLngBoundsExpression): boolean; } -interface PaneProps { +export interface PaneProps extends MapComponentProps { name?: string; style?: React.CSSProperties; className?: string; } -export const Pane: React.ComponentClass; +export interface PaneState { + name?: string; +} +export class Pane

extends React.Component { + getChildContext(): { pane: string }; + createPane(props: P): void; + removePane(): void; + setStyle(arg: { style?: string, className?: string }): void; + getParentPane(): HTMLElement | undefined; + getPane(name: string): HTMLElement | undefined; +} // There is no Layer class, these are the base props for all layers on the map interface LayerProps extends LeafletInteractionEvents {