@colisweb/rescript-toolkit 5.9.11 → 5.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "5.9.11",
3
+ "version": "5.9.12",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -174,12 +174,17 @@ module Map = {
174
174
  module DomMarker = {
175
175
  type t
176
176
 
177
- type options = {icon?: DomIcon.t}
177
+ type options = {icon?: DomIcon.t, min?: int, max?: int}
178
+
179
+ @new
180
+ external makeWithCoordinates: (coordinates, options) => t = "H.map.DomMarker"
178
181
  @new
179
- external make: (coordinates, options) => t = "H.map.DomMarker"
182
+ external makeWithGeoPoint: (Geo.Point.t, options) => t = "H.map.DomMarker"
180
183
 
181
184
  @send
182
185
  external setData: (t, string) => unit = "setData"
186
+ @send
187
+ external addEventListener: (t, string, Event.t<'a> => unit) => unit = "addEventListener"
183
188
 
184
189
  external toObject: t => object = "%identity"
185
190
  }