@types/mapbox__mapbox-gl-draw
Advanced tools
Comparing version 1.4.7 to 1.4.8
@@ -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]; |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24127
483