Socket
Socket
Sign inDemoInstall

@types/leaflet

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/leaflet - npm Package Compare versions

Comparing version 1.0.53 to 1.0.54

35

leaflet/index.d.ts

@@ -1408,4 +1408,4 @@ // Type definitions for Leaflet.js 1.0

export interface IconOptions extends LayerOptions {
iconUrl: string;
interface BaseIconOptions extends LayerOptions {
iconUrl?: string;
iconRetinaUrl?: string;

@@ -1422,9 +1422,16 @@ iconSize?: PointExpression;

class InternalIcon extends Layer {
constructor(options: IconOptions);
export interface IconOptions extends BaseIconOptions {
iconUrl: string;
}
// This class does not exist in reality, it's just a way to provide
// options of more specific types in the sub classes
class BaseIcon extends Layer {
createIcon(oldIcon?: HTMLElement): HTMLElement;
createShadow(oldIcon?: HTMLElement): HTMLElement;
options: BaseIconOptions;
}
export class Icon extends InternalIcon {
createShadow(oldIcon?: HTMLElement): HTMLElement;
export class Icon extends BaseIcon {
constructor(options: IconOptions);
options: IconOptions;

@@ -1434,5 +1441,11 @@ }

export namespace Icon {
export class Default extends InternalIcon {
imagePath: string;
export interface DefaultIconOptions extends BaseIconOptions {
imagePath?: string;
}
export class Default extends BaseIcon {
static imagePath?: string;
constructor(options?: DefaultIconOptions);
options: DefaultIconOptions;
}
}

@@ -1442,3 +1455,3 @@

export interface DivIconOptions extends LayerOptions {
export interface DivIconOptions extends BaseIconOptions {
html?: string;

@@ -1452,3 +1465,3 @@ bgPos?: PointExpression;

export class DivIcon extends InternalIcon {
export class DivIcon extends BaseIcon {
constructor(options?: DivIconOptions);

@@ -1471,4 +1484,2 @@ options: DivIconOptions;

riseOffset?: number;
options?: DivIconOptions;
}

@@ -1475,0 +1486,0 @@

{
"name": "@types/leaflet",
"version": "1.0.53",
"version": "1.0.54",
"description": "TypeScript definitions for Leaflet.js",
"license": "MIT",
"author": "Alejandro Sánchez <https://github.com/alejo90>",
"contributors": [
{
"name": "Alejandro Sánchez",
"url": "https://github.com/alejo90"
}
],
"main": "",

@@ -17,4 +22,4 @@ "repository": {

"peerDependencies": {},
"typesPublisherContentHash": "c2d5f79d64b9ca9ee8680a10920279363f4d1e8d23a08783fb83691d543b5203",
"typesPublisherContentHash": "aecc144a07d97339acf4d2c8d283a1754ef9ada7996c36d5afa9ca264bfb8e51",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Fri, 10 Feb 2017 21:47:11 GMT
* Last updated: Fri, 17 Feb 2017 19:10:28 GMT
* Dependencies: geojson

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

@@ -6,3 +6,8 @@ {

"data": {
"authors": "Alejandro Sánchez <https://github.com/alejo90>",
"contributors": [
{
"name": "Alejandro Sánchez",
"url": "https://github.com/alejo90"
}
],
"dependencies": {

@@ -29,5 +34,5 @@ "geojson": "*"

"hasPackageJson": false,
"contentHash": "c2d5f79d64b9ca9ee8680a10920279363f4d1e8d23a08783fb83691d543b5203"
"contentHash": "aecc144a07d97339acf4d2c8d283a1754ef9ada7996c36d5afa9ca264bfb8e51"
},
"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