diff --git a/types/react-leaflet/index.d.ts b/types/react-leaflet/index.d.ts index 8c386d49dd..56df276cc2 100644 --- a/types/react-leaflet/index.d.ts +++ b/types/react-leaflet/index.d.ts @@ -220,9 +220,12 @@ export interface WMSTileLayerProps extends GridLayerProps, Leaflet.WMSOptions { } export class WMSTileLayer

extends GridLayer { } -// Path is an abstract class -// tslint:disable-next-line:no-empty-interface -interface PathProps extends LeafletLayerEvents, LeafletInteractionEvents, Leaflet.PathOptions { +export interface PathProps extends MapLayerProps, Leaflet.PathOptions { } +export abstract class Path

extends MapLayer { + getChildContext(): { popupContainer: E }; + getPathOptions(props: P): Leaflet.PathOptions; + setStyle(options: React.CSSProperties): void; + setStyleIfChanged(fromProps: P, toProps: P): void; } interface CircleProps extends PathProps {