New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/leaflet-draw

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/leaflet-draw - npm Package Compare versions

Comparing version 0.2.29 to 0.4.0

53

leaflet-draw/index.d.ts

@@ -1,4 +0,4 @@

// Type definitions for leaflet-draw 0.2.4
// Type definitions for leaflet-draw 0.4.6
// Project: https://github.com/Leaflet/Leaflet.draw
// Definitions by: Matt Guest <https://github.com/matt-guest>
// Definitions by: Matt Guest <https://github.com/matt-guest>, Ryan Blace <https://github.com/reblace>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -13,14 +13,6 @@

export interface ControlStatic {
Draw: Control.DrawStatic;
}
namespace Control {
export interface DrawStatic {
new (options?: IDrawConstructorOptions): Draw;
}
export interface DrawConstructorOptions {
export interface IDrawConstructorOptions {
/**

@@ -95,3 +87,3 @@ * The initial position of the control (one of the map corners).

*/
featureGroup: FeatureGroup<ILayer>;
featureGroup: FeatureGroup;

@@ -113,5 +105,10 @@ /**

export interface Draw extends IControl {
export interface Draw extends Control {
setDrawingOptions(options: DrawOptions): void;
}
export class Draw {
constructor(options?: DrawConstructorOptions);
}
}

@@ -258,2 +255,24 @@

namespace Draw {
namespace Event {
export const CREATED: string;
export const EDITED: string;
export const DELETED: string;
export const DRAWSTART: string;
export const DRAWSTOP: string;
export const DRAWVERTEX: string;
export const EDITSTART: string;
export const EDITMOVE: string;
export const EDITRESIZE: string;
export const EDITVERTEX: string;
export const EDITSTOP: string;
export const DELETESTART: string;
export const DELETESTOP: string;
}
}
namespace DrawEvents {

@@ -266,3 +285,3 @@

*/
layer: ILayer;
layer: Layer;

@@ -280,3 +299,3 @@ /**

*/
layers: LayerGroup<ILayer>;
layers: LayerGroup;
}

@@ -292,3 +311,3 @@

*/
layers: LayerGroup<ILayer>;
layers: LayerGroup;
}

@@ -312,3 +331,3 @@

export interface EditStart {
export interface EditStart {
/**

@@ -315,0 +334,0 @@ * The type of edit this is. One of: edit

{
"name": "@types/leaflet-draw",
"version": "0.2.29",
"description": "TypeScript definitions for leaflet-draw 0.2.4",
"version": "0.4.0",
"description": "TypeScript definitions for leaflet-draw",
"license": "MIT",
"author": "Matt Guest <https://github.com/matt-guest>",
"author": "Matt Guest <https://github.com/matt-guest>, Ryan Blace <https://github.com/reblace>",
"main": "",

@@ -14,6 +14,7 @@ "repository": {

"dependencies": {
"@types/leaflet": "*"
"@types/leaflet": "^1.0"
},
"typings": "index.d.ts",
"typesPublisherContentHash": "a47010a774bb5ceeb85c07cc517a93c16c8ee10c3271ccffe8cccbe258e1853a"
"peerDependencies": {},
"typesPublisherContentHash": "3f76f5df1b0981a081152fddf39260d91dfe74ad76c03b2936af6c59b722d5a0",
"typeScriptVersion": "2.0"
}

@@ -5,15 +5,14 @@ # Installation

# Summary
This package contains type definitions for leaflet-draw 0.2.4 (https://github.com/Leaflet/Leaflet.draw).
This package contains type definitions for leaflet-draw (https://github.com/Leaflet/Leaflet.draw).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/leaflet-draw
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/leaflet-draw
Additional Details
* Last updated: Wed, 21 Sep 2016 20:25:55 GMT
* File structure: Global
* Last updated: Thu, 29 Dec 2016 23:09:07 GMT
* Library Dependencies: leaflet
* Module Dependencies: none
* Global values: none
* Global values: L
# Credits
These definitions were written by Matt Guest <https://github.com/matt-guest>.
These definitions were written by Matt Guest <https://github.com/matt-guest>, Ryan Blace <https://github.com/reblace>.
{
"authors": "Matt Guest <https://github.com/matt-guest>",
"definitionFilename": "index.d.ts",
"authors": "Matt Guest <https://github.com/matt-guest>, Ryan Blace <https://github.com/reblace>",
"libraryDependencies": [

@@ -8,11 +7,13 @@ "leaflet"

"moduleDependencies": [],
"libraryMajorVersion": "0",
"libraryMinorVersion": "2",
"libraryName": "leaflet-draw 0.2.4",
"libraryMajorVersion": 0,
"libraryMinorVersion": 4,
"typeScriptVersion": "2.0",
"libraryName": "leaflet-draw",
"typingsPackageName": "leaflet-draw",
"projectName": "https://github.com/Leaflet/Leaflet.draw",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "Global",
"globals": [],
"sourceBranch": "master",
"globals": [
"L"
],
"declaredModules": [],

@@ -23,3 +24,3 @@ "files": [

"hasPackageJson": true,
"contentHash": "a47010a774bb5ceeb85c07cc517a93c16c8ee10c3271ccffe8cccbe258e1853a"
"contentHash": "3f76f5df1b0981a081152fddf39260d91dfe74ad76c03b2936af6c59b722d5a0"
}
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