mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-25 08:06:22 +08:00
Update PathProps, add Path abstract class.
This commit is contained in:
9
types/react-leaflet/index.d.ts
vendored
9
types/react-leaflet/index.d.ts
vendored
@@ -220,9 +220,12 @@ export interface WMSTileLayerProps extends GridLayerProps, Leaflet.WMSOptions {
|
||||
}
|
||||
export class WMSTileLayer<P extends WMSTileLayerProps, E extends Leaflet.TileLayer.WMS> extends GridLayer<P, E> { }
|
||||
|
||||
// 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<P extends PathProps, E> extends MapLayer<P, E> {
|
||||
getChildContext(): { popupContainer: E };
|
||||
getPathOptions(props: P): Leaflet.PathOptions;
|
||||
setStyle(options: React.CSSProperties): void;
|
||||
setStyleIfChanged(fromProps: P, toProps: P): void;
|
||||
}
|
||||
|
||||
interface CircleProps extends PathProps {
|
||||
|
||||
Reference in New Issue
Block a user