@rescript/webapi 0.1.0-experimental-fc2ab05 → 0.1.0-experimental-a2ab3fd

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": "@rescript/webapi",
3
- "version": "0.1.0-experimental-fc2ab05",
3
+ "version": "0.1.0-experimental-a2ab3fd",
4
4
  "description": "Experimental successor to [rescript-webapi](https://github.com/TheSpyder/rescript-webapi)",
5
5
  "homepage": "https://rescript-lang.github.io/experimental-rescript-webapi/",
6
6
  "bugs": "https://github.com/rescript-lang/experimental-rescript-webapi/issues",
package/src/EventAPI.res CHANGED
@@ -22,6 +22,7 @@ type eventType =
22
22
  | @as("cuechange") Cuechange
23
23
  | @as("cut") Cut
24
24
  | @as("dblclick") Dblclick
25
+ | @as("DOMContentLoaded") DOMContentLoaded
25
26
  | @as("drag") Drag
26
27
  | @as("dragend") Dragend
27
28
  | @as("dragenter") Dragenter
@@ -23,3 +23,10 @@ external requestPermission: (
23
23
  */
24
24
  @send
25
25
  external close: notification => unit = "close"
26
+
27
+ /**
28
+ [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission_static)
29
+ */
30
+ @scope("Notification")
31
+ @val
32
+ external permission: notificationPermission = "permission"