Skip to content

Commit 061fed3

Browse files
🤖 Merge PR DefinitelyTyped#61339 Update Leaflet declaration to include missing methods, as of version 1.8 by @someonewithpc
* Leaflet: Update definitions to include missing methods found in 1.8 A declaration was generated with `dts-gen` and compared with the existing definition, merging them manually to add missing methods * Leaflet: Explicitly define `Evented.listens` with the corresponding function type and fix linter errors * Leaflet: Add tests for added methods * Leaflet: Add missing Mixin export * Allow L.geoJSON to accept geojson.GeoJsonObject[], fixing DefinitelyTyped#60930 * Temporarily duplicate the implementation of Events and Evented, so tests pass * Fix toGeoJson(precision?: number | false) argument for all overrides * Add missing properties, as pointed out by DangerBotOSS * Add a 'tileabort' event when a tile load is cancelled See Leaflet/Leaflet#6786 * Make changes reported in Leaflet's Changelog - Make DivOverlay / Tooltip interactive (DefinitelyTyped#7531, DefinitelyTyped#7532 by @johnd0e) - Add openOn, close, toggle functions to DivOverlay (DefinitelyTyped#6639 by @johnd0e) - Introduce DomEvent.off(el) to remove all listeners (DefinitelyTyped#7125 by @johnd0e) - Allow preventing round-off errors by passing false to Util.formatNum / toGeoJSON (DefinitelyTyped#7100 by @johnd0e) - Add autoPanOnFocus to Marker (DefinitelyTyped#8042 by @IvanSanchez) - Add referrerPolicy to TileLayer (DefinitelyTyped#7945 by @natevw) - Add playsInline to VideoOverlay (DefinitelyTyped#7928 by @Falke-Design) - Add getCenter to ImageOverlay (DefinitelyTyped#7848 by @Falke-Design) - Fire a tileabort event when a TileLayer load is cancelled (DefinitelyTyped#6786 by @dstndstn) - Add crossOrigin to Icon (DefinitelyTyped#7298 by @syedmuhammadabid)
1 parent 8fe86d6 commit 061fed3

File tree

2 files changed

+673
-99
lines changed

2 files changed

+673
-99
lines changed

0 commit comments

Comments
 (0)