@rescript/webapi 0.1.0-experimental-c882807 → 0.1.0-experimental-161c54b
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 +1 -1
- package/src/NotificationAPI.res +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescript/webapi",
|
|
3
|
-
"version": "0.1.0-experimental-
|
|
3
|
+
"version": "0.1.0-experimental-161c54b",
|
|
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/NotificationAPI.res
CHANGED
|
@@ -86,6 +86,10 @@ type notificationOptions = {
|
|
|
86
86
|
mutable requireInteraction?: bool,
|
|
87
87
|
mutable data?: JSON.t,
|
|
88
88
|
mutable actions?: array<notificationAction>,
|
|
89
|
+
/**
|
|
90
|
+
[Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification#vibrate)
|
|
91
|
+
*/
|
|
92
|
+
mutable vibrate?: array<int>,
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
type getNotificationOptions = {mutable tag?: string}
|