mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Address PR : add type parameter
This commit is contained in:
8
types/react-leaflet/index.d.ts
vendored
8
types/react-leaflet/index.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
// Project: https://github.com/PaulLeCam/react-leaflet
|
||||
// Definitions by: Dave Leaver <https://github.com/danzel>, David Schneider <https://github.com/davschne>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as Leaflet from 'leaflet';
|
||||
import * as React from 'react';
|
||||
@@ -202,7 +202,7 @@ export interface WMSTileLayerProps extends TileLayerEvents, Leaflet.WMSOptions {
|
||||
children?: Children;
|
||||
url: string;
|
||||
}
|
||||
export class WMSTileLayer<P = WMSTileLayerProps> extends GridLayer<P, Leaflet.TileLayer.WMS> { }
|
||||
export class WMSTileLayer<P = WMSTileLayerProps, E extends Leaflet.GridLayer = Leaflet.TileLayer.WMS> extends GridLayer<P, E> { }
|
||||
|
||||
export interface ImageOverlayProps extends Leaflet.ImageOverlayOptions {
|
||||
bounds: Leaflet.LatLngBoundsExpression;
|
||||
@@ -320,7 +320,7 @@ export interface LayersControlProps extends LayersControlEvents, Leaflet.Control
|
||||
children?: Children;
|
||||
overlays?: Leaflet.Control.LayersObject;
|
||||
}
|
||||
export class LayersControl<P = AttributionControlProps> extends MapControl<P, Leaflet.Control.Layers> { }
|
||||
export class LayersControl<P = AttributionControlProps, E extends Leaflet.Control = Leaflet.Control.Layers> extends MapControl<P, E> { }
|
||||
|
||||
export namespace LayersControl {
|
||||
interface BaseControlledLayerProps {
|
||||
@@ -348,4 +348,4 @@ export type ScaleControlProps = Leaflet.Control.ScaleOptions;
|
||||
export class ScaleControl<P extends ScaleControlProps, E extends Leaflet.Control.Scale> extends MapControl<P, E> { }
|
||||
|
||||
export type ZoomControlProps = Leaflet.Control.ZoomOptions;
|
||||
export class ZoomControl<P = ZoomControlProps> extends MapControl<P, Leaflet.Control.Zoom> { }
|
||||
export class ZoomControl<P = ZoomControlProps, E extends Leaflet.Control = Leaflet.Control.Zoom> extends MapControl<P, E> { }
|
||||
|
||||
Reference in New Issue
Block a user