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.1 to 1.0.2

23

react-leaflet/index.d.ts

@@ -7,8 +7,6 @@ // Type definitions for react-leaflet 1.0

/// <reference types="geojson" />
import * as Leaflet from 'leaflet';
import * as React from 'react';
//All events need to be lowercase so they don't collide with React.DOMAttributes<T>
// All events need to be lowercase so they don't collide with React.DOMAttributes<T>
// which already declares things with some of the same names

@@ -73,3 +71,4 @@

interface MapProps extends React.HTMLProps<Map>, LeafletLayerEvents, LeafletMapStateChangeEvents, LeafletPopupEvents, LeafletTooltipEvents, LeafletLocationEvents, LeafletInteractionEvents, LeafletOtherEvents, Leaflet.MapOptions {
interface MapProps extends React.HTMLProps<Map>,
LeafletLayerEvents, LeafletMapStateChangeEvents, LeafletPopupEvents, LeafletTooltipEvents, LeafletLocationEvents, LeafletInteractionEvents, LeafletOtherEvents, Leaflet.MapOptions {
animate?: boolean;

@@ -99,3 +98,3 @@ bounds?: Leaflet.LatLngBoundsExpression;

//There is no Layer class, these are the base props for all layers on the map
// There is no Layer class, these are the base props for all layers on the map
interface LayerProps extends LeafletInteractionEvents {

@@ -105,7 +104,7 @@ onadd?: (event: Leaflet.Event) => void;

//Popup events
// Popup events
onpopupopen?: (event: Leaflet.PopupEvent) => void;
onpopupclose?: (event: Leaflet.PopupEvent) => void;
//Tooltip events
// Tooltip events
ontooltipopen?: (event: Leaflet.TooltipEvent) => void;

@@ -133,3 +132,3 @@ ontooltipclose?: (event: Leaflet.TooltipEvent) => void;

//tslint:disable-next-line:no-empty-interface
// tslint:disable-next-line:no-empty-interface
interface TooltipProps extends LayerProps, Leaflet.TooltipOptions { }

@@ -167,4 +166,4 @@ declare const Tooltip: React.ComponentClass<TooltipProps>;

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

@@ -202,7 +201,7 @@ }

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

@@ -209,0 +208,0 @@ declare const FeatureGroup: React.ComponentClass<FeatureGroupProps>;

{
"name": "@types/react-leaflet",
"version": "1.0.1",
"version": "1.0.2",
"description": "TypeScript definitions for react-leaflet",
"license": "MIT",
"author": "Dave Leaver <https://github.com/danzel>",
"contributors": [
{
"name": "Dave Leaver",
"url": "https://github.com/danzel"
}
],
"main": "",

@@ -15,8 +20,7 @@ "repository": {

"@types/leaflet": "*",
"@types/react": "*",
"@types/geojson": "*"
"@types/react": "*"
},
"peerDependencies": {},
"typesPublisherContentHash": "70cafc26b59ddd07a8f80fe5d24cfe5a3aa2a205b4012d62c71acd7965bf5f2f",
"typesPublisherContentHash": "e857f8e86f3a6d427905b14c719519ae6f1e7f72a4547f9da20308244b7946d2",
"typeScriptVersion": "2.1"
}

@@ -11,4 +11,4 @@ # Installation

Additional Details
* Last updated: Thu, 19 Jan 2017 14:46:20 GMT
* Dependencies: leaflet, react, geojson
* Last updated: Thu, 23 Feb 2017 15:22:21 GMT
* Dependencies: leaflet, react
* Global values: none

@@ -15,0 +15,0 @@

@@ -6,7 +6,11 @@ {

"data": {
"authors": "Dave Leaver <https://github.com/danzel>",
"contributors": [
{
"name": "Dave Leaver",
"url": "https://github.com/danzel"
}
],
"dependencies": {
"leaflet": "*",
"react": "*",
"geojson": "*"
"react": "*"
},

@@ -29,5 +33,5 @@ "pathMappings": {},

"hasPackageJson": false,
"contentHash": "70cafc26b59ddd07a8f80fe5d24cfe5a3aa2a205b4012d62c71acd7965bf5f2f"
"contentHash": "e857f8e86f3a6d427905b14c719519ae6f1e7f72a4547f9da20308244b7946d2"
},
"isLatest": true
}
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