From 4db5f12ed35b2b62886b60f20a05d608240bc37e Mon Sep 17 00:00:00 2001 From: David Schneider Date: Thu, 13 Apr 2017 16:09:49 -0700 Subject: [PATCH] Update PathProps, add Path abstract class. --- types/react-leaflet/index.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 {