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

@types/mapbox__mapbox-gl-draw

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mapbox__mapbox-gl-draw - npm Package Compare versions

Comparing version 1.4.7 to 1.4.8

16

mapbox__mapbox-gl-draw/index.d.ts

@@ -17,18 +17,2 @@ import { BBox, Feature, FeatureCollection, GeoJSON, GeoJsonTypes, Geometry, Point, Position } from "geojson";

type EventOf<T extends MapboxDraw.DrawEventType, Target = unknown> = keyof MapboxDraw.DrawEvents[T] extends never ? {
type: T;
target: Target;
}
: {
type: T;
target: Target;
} & MapboxDraw.DrawEvents[T];
declare module "mapbox-gl" {
interface Map {
on<T extends MapboxDraw.DrawEventType>(type: T, listener: (event: EventOf<T>) => void): this;
off<T extends MapboxDraw.DrawEventType>(type: T, listener: (event: EventOf<T>) => void): this;
}
}
declare namespace MapboxDraw {

@@ -35,0 +19,0 @@ type DrawMode = DrawModes[keyof DrawModes];

4

mapbox__mapbox-gl-draw/package.json
{
"name": "@types/mapbox__mapbox-gl-draw",
"version": "1.4.7",
"version": "1.4.8",
"description": "TypeScript definitions for @mapbox/mapbox-gl-draw",

@@ -41,4 +41,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-gl-draw",

},
"typesPublisherContentHash": "e29ac0f8ccaa01fdd2842171d9988f718163086f34c98ab10a6242a27ee8a790",
"typesPublisherContentHash": "ea33325b382e8596461c4148cb23adb5a39d5ac8bf06c99e797f4f7c3ea5e9ae",
"typeScriptVersion": "4.8"
}

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

### Additional Details
* Last updated: Tue, 30 Jul 2024 15:36:14 GMT
* Last updated: Wed, 18 Sep 2024 19:36:28 GMT
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [mapbox-gl](https://npmjs.com/package/mapbox-gl)

@@ -14,0 +14,0 @@

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