Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-leaflet

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-leaflet - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

54

react-leaflet/index.d.ts

@@ -69,3 +69,2 @@ // Type definitions for react-leaflet 1.0

interface MapProps extends React.HTMLProps<Map>,

@@ -82,4 +81,4 @@ LeafletLayerEvents, LeafletMapStateChangeEvents, LeafletPopupEvents, LeafletTooltipEvents, LeafletLocationEvents, LeafletInteractionEvents, LeafletOtherEvents, Leaflet.MapOptions {

}
declare type Map = React.ComponentClass<MapProps>;
declare const Map: Map;
type Map = React.ComponentClass<MapProps>;
export const Map: Map;
interface MapInstance extends React.Component<MapProps, {}> {

@@ -89,3 +88,2 @@ leafletElement: Leaflet.Map;

interface PaneProps {

@@ -96,5 +94,4 @@ name?: string;

}
declare const Pane: React.ComponentClass<PaneProps>;
export const Pane: React.ComponentClass<PaneProps>;
// There is no Layer class, these are the base props for all layers on the map

@@ -114,3 +111,2 @@ interface LayerProps extends LeafletInteractionEvents {

interface MarkerProps extends LayerProps, LeafletDraggingEvents {

@@ -123,3 +119,3 @@ position: Leaflet.LatLngExpression;

}
declare const Marker: React.ComponentClass<MarkerProps>;
export const Marker: React.ComponentClass<MarkerProps>;
interface MarkerInstance extends React.Component<MarkerProps, {}> {

@@ -132,7 +128,7 @@ leafletElement: Leaflet.Marker;

}
declare const Popup: React.ComponentClass<PopupProps>;
export const Popup: React.ComponentClass<PopupProps>;
// tslint:disable-next-line:no-empty-interface
interface TooltipProps extends LayerProps, Leaflet.TooltipOptions { }
declare const Tooltip: React.ComponentClass<TooltipProps>;
export const Tooltip: React.ComponentClass<TooltipProps>;

@@ -150,3 +146,3 @@ interface GridLayerProps extends LayerProps {

}
declare const GridLayer: React.ComponentClass<GridLayerProps>;
export const GridLayer: React.ComponentClass<GridLayerProps>;

@@ -156,3 +152,3 @@ interface TileLayerProps extends GridLayerProps, Leaflet.TileLayerOptions {

}
declare const TileLayer: React.ComponentClass<TileLayerProps>;
export const TileLayer: React.ComponentClass<TileLayerProps>;

@@ -163,3 +159,3 @@ interface ImageOverlayProps extends LayerProps, LeafletInteractionEvents {

}
declare const ImageOverlay: React.ComponentClass<ImageOverlayProps>;
export const ImageOverlay: React.ComponentClass<ImageOverlayProps>;

@@ -169,3 +165,3 @@ interface WMSTileLayerProps extends TileLayerProps {

}
declare const WMSTileLayer: React.ComponentClass<WMSTileLayerProps>;
export const WMSTileLayer: React.ComponentClass<WMSTileLayerProps>;

@@ -177,3 +173,2 @@ // Path is an abstract class

interface CircleProps extends PathProps {

@@ -183,3 +178,3 @@ center: Leaflet.LatLngExpression;

}
declare const Circle: React.ComponentClass<CircleProps>;
export const Circle: React.ComponentClass<CircleProps>;

@@ -190,3 +185,3 @@ interface CircleMarkerProps extends PathProps {

}
declare const CircleMarker: React.ComponentClass<CircleMarkerProps>;
export const CircleMarker: React.ComponentClass<CircleMarkerProps>;

@@ -196,3 +191,3 @@ interface PolylineProps extends PathProps {

}
declare const Polyline: React.ComponentClass<PolylineProps>;
export const Polyline: React.ComponentClass<PolylineProps>;

@@ -202,3 +197,3 @@ interface PolygonProps extends PathProps {

}
declare const Polygon: React.ComponentClass<PolygonProps>;
export const Polygon: React.ComponentClass<PolygonProps>;

@@ -208,12 +203,11 @@ interface RectangleProps extends PathProps {

}
declare const Rectangle: React.ComponentClass<RectangleProps>;
export const Rectangle: React.ComponentClass<RectangleProps>;
// tslint:disable-next-line:no-empty-interface
interface LayerGroupProps extends LayerProps { }
declare const LayerGroup: React.ComponentClass<LayerGroupProps>;
export const LayerGroup: React.ComponentClass<LayerGroupProps>;
// tslint:disable-next-line:no-empty-interface
interface FeatureGroupProps extends LayerGroupProps, Leaflet.PathOptions { }
declare const FeatureGroup: React.ComponentClass<FeatureGroupProps>;
export const FeatureGroup: React.ComponentClass<FeatureGroupProps>;

@@ -223,10 +217,8 @@ interface GeoJSONProps extends FeatureGroupProps {

}
declare const GeoJSON: React.ComponentClass<GeoJSONProps>;
export const GeoJSON: React.ComponentClass<GeoJSONProps>;
interface AttributionControlProps {
position?: Leaflet.ControlPosition;
}
declare const AttributionControl: React.ComponentClass<AttributionControlProps>;
export const AttributionControl: React.ComponentClass<AttributionControlProps>;

@@ -236,5 +228,5 @@ interface LayersControlProps {

}
declare const LayersControl: React.ComponentClass<LayersControlProps> & { BaseLayer: LayersControl.BaseLayer, Overlay: LayersControl.Overlay };
export const LayersControl: React.ComponentClass<LayersControlProps> & { BaseLayer: LayersControl.BaseLayer, Overlay: LayersControl.Overlay };
declare namespace LayersControl {
export namespace LayersControl {
interface LayersControlLayerProps {

@@ -251,3 +243,3 @@ name: string;

}
declare const ScaleControl: React.ComponentClass<ScaleControlProps>;
export const ScaleControl: React.ComponentClass<ScaleControlProps>;

@@ -257,2 +249,2 @@ interface ZoomControlProps {

}
declare const ZoomControl: React.ComponentClass<ZoomControlProps>;
export const ZoomControl: React.ComponentClass<ZoomControlProps>;
{
"name": "@types/react-leaflet",
"version": "1.0.3",
"version": "1.0.4",
"description": "TypeScript definitions for react-leaflet",

@@ -23,4 +23,4 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "73bb0913784bb20252080f0b47f37001cb11bd7b0366e04063052469097b390d",
"typesPublisherContentHash": "9b154cbe5c7fb7ac4b5a3b6b4ea501c262bdb48867aa53d2bd337378567634e3",
"typeScriptVersion": "2.1"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Sat, 11 Mar 2017 00:13:29 GMT
* Last updated: Mon, 27 Mar 2017 20:43:37 GMT
* Dependencies: leaflet, react

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc