@rescript/webapi 0.1.0-experimental-f6d2a7d → 0.1.0-experimental-e13fb00

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.
Files changed (73) hide show
  1. package/package.json +1 -1
  2. package/src/CSSFontLoadingAPI/FontFace.res +1 -1
  3. package/src/CSSFontLoadingAPI/FontFaceSet.res +1 -1
  4. package/src/CSSFontLoadingAPI.res +2 -2
  5. package/src/CanvasAPI/OffscreenCanvas.res +1 -1
  6. package/src/ClipboardAPI/Clipboard.res +4 -4
  7. package/src/ClipboardAPI/ClipboardItem.res +1 -1
  8. package/src/CredentialManagementAPI/CredentialsContainer.res +4 -4
  9. package/src/DOMAPI/CSSStyleSheet.res +1 -1
  10. package/src/DOMAPI/CustomElementRegistry.res +1 -1
  11. package/src/DOMAPI/Document.res +4 -4
  12. package/src/DOMAPI/Element.res +2 -2
  13. package/src/DOMAPI/HTMLImageElement.res +1 -1
  14. package/src/DOMAPI/HTMLMediaElement.res +3 -3
  15. package/src/DOMAPI/HTMLVideoElement.res +1 -1
  16. package/src/DOMAPI/Navigator.res +5 -5
  17. package/src/DOMAPI/VideoFrame.res +3 -3
  18. package/src/DOMAPI/Window.res +20 -20
  19. package/src/DOMAPI.res +9 -2
  20. package/src/EncryptedMediaExtensionsAPI/MediaKeySession.res +7 -7
  21. package/src/EncryptedMediaExtensionsAPI/MediaKeySystemAccess.res +1 -1
  22. package/src/EncryptedMediaExtensionsAPI/MediaKeys.res +3 -3
  23. package/src/EncryptedMediaExtensionsAPI.res +1 -1
  24. package/src/EventAPI/EventTarget.res +8 -8
  25. package/src/FetchAPI/Request.res +6 -6
  26. package/src/FetchAPI/Response.res +6 -6
  27. package/src/FileAPI/Blob.res +3 -3
  28. package/src/FileAPI/FileSystemDirectoryHandle.res +5 -5
  29. package/src/FileAPI/FileSystemFileHandle.res +3 -3
  30. package/src/FileAPI/FileSystemHandle.res +1 -1
  31. package/src/FileAPI/FileSystemWritableFileStream.res +9 -9
  32. package/src/FileAPI/ReadableStream.res +2 -2
  33. package/src/FileAPI/WritableStream.res +2 -2
  34. package/src/FileAPI.res +1 -1
  35. package/src/GamepadAPI/GamepadHapticActuator.res +2 -2
  36. package/src/Global.res +28 -28
  37. package/src/IndexedDBAPI/IDBFactory.res +1 -1
  38. package/src/MediaCapabilitiesAPI/MediaCapabilities.res +2 -2
  39. package/src/MediaCaptureAndStreamsAPI/MediaDevices.res +3 -3
  40. package/src/MediaCaptureAndStreamsAPI/MediaStreamTrack.res +1 -1
  41. package/src/NotificationAPI/Notification.res +1 -1
  42. package/src/PermissionsAPI/Permissions.res +1 -1
  43. package/src/PushManagerAPI/PushManager.res +3 -3
  44. package/src/PushManagerAPI/PushSubscription.res +1 -1
  45. package/src/RemotePlaybackAPI/RemotePlayback.res +3 -3
  46. package/src/ScreenWakeLockAPI/WakeLock.res +1 -1
  47. package/src/ScreenWakeLockAPI/WakeLockSentinel.res +1 -1
  48. package/src/ServiceWorkerAPI/Cache.res +11 -11
  49. package/src/ServiceWorkerAPI/CacheStorage.res +4 -4
  50. package/src/ServiceWorkerAPI/NavigationPreloadManager.res +4 -4
  51. package/src/ServiceWorkerAPI/ServiceWorkerContainer.res +2 -2
  52. package/src/ServiceWorkerAPI/ServiceWorkerRegistration.res +4 -4
  53. package/src/ServiceWorkerAPI.res +1 -1
  54. package/src/StorageAPI/StorageManager.res +4 -4
  55. package/src/UIEventsAPI/CompositionEvent.res +12 -0
  56. package/src/UIEventsAPI/DataTransfer.res +36 -0
  57. package/src/UIEventsAPI/DataTransferItem.res +23 -0
  58. package/src/UIEventsAPI/DataTransferItemList.res +30 -0
  59. package/src/UIEventsAPI/FocusEvent.res +11 -0
  60. package/src/UIEventsAPI/InputEvent.res +18 -0
  61. package/src/UIEventsAPI/KeyboardEvent.res +18 -0
  62. package/src/UIEventsAPI/MouseEvent.res +29 -0
  63. package/src/UIEventsAPI/UIEvent.res +23 -0
  64. package/src/UIEventsAPI/WheelEvent.res +11 -0
  65. package/src/UIEventsAPI.res +373 -0
  66. package/src/ViewTransitionsAPI.res +4 -4
  67. package/src/WebAudioAPI/AudioContext.res +3 -3
  68. package/src/WebAudioAPI/BaseAudioContext.res +1 -1
  69. package/src/WebAudioAPI/OfflineAudioContext.res +3 -3
  70. package/src/WebAudioAPI/Worklet.res +1 -1
  71. package/src/WebCryptoAPI/SubtleCrypto.res +15 -15
  72. package/src/WebLocksAPI/LockManager.res +3 -3
  73. package/src/WebLocksAPI.res +1 -1
@@ -8,18 +8,18 @@ include EventTarget.Impl({
8
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability)
9
9
  */
10
10
  @send
11
- external watchAvailability: (remotePlayback, remotePlaybackAvailabilityCallback) => Promise.t<int> =
11
+ external watchAvailability: (remotePlayback, remotePlaybackAvailabilityCallback) => promise<int> =
12
12
  "watchAvailability"
13
13
 
14
14
  /**
15
15
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability)
16
16
  */
17
17
  @send
18
- external cancelWatchAvailability: (remotePlayback, ~id: int=?) => Promise.t<unit> =
18
+ external cancelWatchAvailability: (remotePlayback, ~id: int=?) => promise<unit> =
19
19
  "cancelWatchAvailability"
20
20
 
21
21
  /**
22
22
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt)
23
23
  */
24
24
  @send
25
- external prompt: remotePlayback => Promise.t<unit> = "prompt"
25
+ external prompt: remotePlayback => promise<unit> = "prompt"
@@ -4,4 +4,4 @@ open ScreenWakeLockAPI
4
4
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WakeLock/request)
5
5
  */
6
6
  @send
7
- external request: (wakeLock, ~type_: wakeLockType=?) => Promise.t<wakeLockSentinel> = "request"
7
+ external request: (wakeLock, ~type_: wakeLockType=?) => promise<wakeLockSentinel> = "request"
@@ -9,4 +9,4 @@ include EventTarget.Impl({
9
9
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release)
10
10
  */
11
11
  @send
12
- external release: wakeLockSentinel => Promise.t<unit> = "release"
12
+ external release: wakeLockSentinel => promise<unit> = "release"
@@ -23,7 +23,7 @@ external matchAll: (
23
23
  cache,
24
24
  ~request: request=?,
25
25
  ~options: cacheQueryOptions=?,
26
- ) => Promise.t<array<response>> = "matchAll"
26
+ ) => promise<array<response>> = "matchAll"
27
27
 
28
28
  /**
29
29
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/matchAll)
@@ -33,50 +33,50 @@ external matchAll2: (
33
33
  cache,
34
34
  ~request: string=?,
35
35
  ~options: cacheQueryOptions=?,
36
- ) => Promise.t<array<response>> = "matchAll"
36
+ ) => promise<array<response>> = "matchAll"
37
37
 
38
38
  /**
39
39
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/add)
40
40
  */
41
41
  @send
42
- external add: (cache, request) => Promise.t<unit> = "add"
42
+ external add: (cache, request) => promise<unit> = "add"
43
43
 
44
44
  /**
45
45
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/add)
46
46
  */
47
47
  @send
48
- external add2: (cache, string) => Promise.t<unit> = "add"
48
+ external add2: (cache, string) => promise<unit> = "add"
49
49
 
50
50
  /**
51
51
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
52
52
  */
53
53
  @send
54
- external addAll: (cache, array<requestInfo>) => Promise.t<unit> = "addAll"
54
+ external addAll: (cache, array<requestInfo>) => promise<unit> = "addAll"
55
55
 
56
56
  /**
57
57
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/put)
58
58
  */
59
59
  @send
60
- external put: (cache, ~request: request, ~response: response) => Promise.t<unit> = "put"
60
+ external put: (cache, ~request: request, ~response: response) => promise<unit> = "put"
61
61
 
62
62
  /**
63
63
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/put)
64
64
  */
65
65
  @send
66
- external put2: (cache, ~request: string, ~response: response) => Promise.t<unit> = "put"
66
+ external put2: (cache, ~request: string, ~response: response) => promise<unit> = "put"
67
67
 
68
68
  /**
69
69
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/delete)
70
70
  */
71
71
  @send
72
- external delete: (cache, ~request: request, ~options: cacheQueryOptions=?) => Promise.t<bool> =
72
+ external delete: (cache, ~request: request, ~options: cacheQueryOptions=?) => promise<bool> =
73
73
  "delete"
74
74
 
75
75
  /**
76
76
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/delete)
77
77
  */
78
78
  @send
79
- external delete2: (cache, ~request: string, ~options: cacheQueryOptions=?) => Promise.t<bool> =
79
+ external delete2: (cache, ~request: string, ~options: cacheQueryOptions=?) => promise<bool> =
80
80
  "delete"
81
81
 
82
82
  /**
@@ -87,7 +87,7 @@ external keys: (
87
87
  cache,
88
88
  ~request: request=?,
89
89
  ~options: cacheQueryOptions=?,
90
- ) => Promise.t<array<request>> = "keys"
90
+ ) => promise<array<request>> = "keys"
91
91
 
92
92
  /**
93
93
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Cache/keys)
@@ -97,4 +97,4 @@ external keys2: (
97
97
  cache,
98
98
  ~request: string=?,
99
99
  ~options: cacheQueryOptions=?,
100
- ) => Promise.t<array<request>> = "keys"
100
+ ) => promise<array<request>> = "keys"
@@ -25,22 +25,22 @@ external match2: (
25
25
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)
26
26
  */
27
27
  @send
28
- external has: (cacheStorage, string) => Promise.t<bool> = "has"
28
+ external has: (cacheStorage, string) => promise<bool> = "has"
29
29
 
30
30
  /**
31
31
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)
32
32
  */
33
33
  @send
34
- external open_: (cacheStorage, string) => Promise.t<cache> = "open"
34
+ external open_: (cacheStorage, string) => promise<cache> = "open"
35
35
 
36
36
  /**
37
37
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)
38
38
  */
39
39
  @send
40
- external delete: (cacheStorage, string) => Promise.t<bool> = "delete"
40
+ external delete: (cacheStorage, string) => promise<bool> = "delete"
41
41
 
42
42
  /**
43
43
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)
44
44
  */
45
45
  @send
46
- external keys: cacheStorage => Promise.t<array<string>> = "keys"
46
+ external keys: cacheStorage => promise<array<string>> = "keys"
@@ -4,22 +4,22 @@ open ServiceWorkerAPI
4
4
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)
5
5
  */
6
6
  @send
7
- external enable: navigationPreloadManager => Promise.t<unit> = "enable"
7
+ external enable: navigationPreloadManager => promise<unit> = "enable"
8
8
 
9
9
  /**
10
10
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)
11
11
  */
12
12
  @send
13
- external disable: navigationPreloadManager => Promise.t<unit> = "disable"
13
+ external disable: navigationPreloadManager => promise<unit> = "disable"
14
14
 
15
15
  /**
16
16
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue)
17
17
  */
18
18
  @send
19
- external setHeaderValue: (navigationPreloadManager, string) => Promise.t<unit> = "setHeaderValue"
19
+ external setHeaderValue: (navigationPreloadManager, string) => promise<unit> = "setHeaderValue"
20
20
 
21
21
  /**
22
22
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState)
23
23
  */
24
24
  @send
25
- external getState: navigationPreloadManager => Promise.t<navigationPreloadState> = "getState"
25
+ external getState: navigationPreloadManager => promise<navigationPreloadState> = "getState"
@@ -13,7 +13,7 @@ external register: (
13
13
  serviceWorkerContainer,
14
14
  ~scriptURL: string,
15
15
  ~options: registrationOptions=?,
16
- ) => Promise.t<serviceWorkerRegistration> = "register"
16
+ ) => promise<serviceWorkerRegistration> = "register"
17
17
 
18
18
  /**
19
19
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)
@@ -28,7 +28,7 @@ external getRegistration: (
28
28
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)
29
29
  */
30
30
  @send
31
- external getRegistrations: serviceWorkerContainer => Promise.t<array<serviceWorkerRegistration>> =
31
+ external getRegistrations: serviceWorkerContainer => promise<array<serviceWorkerRegistration>> =
32
32
  "getRegistrations"
33
33
 
34
34
  /**
@@ -10,13 +10,13 @@ include EventTarget.Impl({
10
10
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)
11
11
  */
12
12
  @send
13
- external update: serviceWorkerRegistration => Promise.t<unit> = "update"
13
+ external update: serviceWorkerRegistration => promise<unit> = "update"
14
14
 
15
15
  /**
16
16
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)
17
17
  */
18
18
  @send
19
- external unregister: serviceWorkerRegistration => Promise.t<bool> = "unregister"
19
+ external unregister: serviceWorkerRegistration => promise<bool> = "unregister"
20
20
 
21
21
  /**
22
22
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification)
@@ -26,7 +26,7 @@ external showNotification: (
26
26
  serviceWorkerRegistration,
27
27
  ~title: string,
28
28
  ~options: notificationOptions=?,
29
- ) => Promise.t<unit> = "showNotification"
29
+ ) => promise<unit> = "showNotification"
30
30
 
31
31
  /**
32
32
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)
@@ -35,4 +35,4 @@ external showNotification: (
35
35
  external getNotifications: (
36
36
  serviceWorkerRegistration,
37
37
  ~filter: getNotificationOptions=?,
38
- ) => Promise.t<array<notification>> = "getNotifications"
38
+ ) => promise<array<notification>> = "getNotifications"
@@ -94,7 +94,7 @@ type serviceWorkerContainer = {
94
94
  /**
95
95
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready)
96
96
  */
97
- ready: Promise.t<serviceWorkerRegistration>,
97
+ ready: promise<serviceWorkerRegistration>,
98
98
  }
99
99
 
100
100
  /**
@@ -5,22 +5,22 @@ open FileAPI
5
5
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted)
6
6
  */
7
7
  @send
8
- external persisted: storageManager => Promise.t<bool> = "persisted"
8
+ external persisted: storageManager => promise<bool> = "persisted"
9
9
 
10
10
  /**
11
11
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StorageManager/persist)
12
12
  */
13
13
  @send
14
- external persist: storageManager => Promise.t<bool> = "persist"
14
+ external persist: storageManager => promise<bool> = "persist"
15
15
 
16
16
  /**
17
17
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)
18
18
  */
19
19
  @send
20
- external estimate: storageManager => Promise.t<storageEstimate> = "estimate"
20
+ external estimate: storageManager => promise<storageEstimate> = "estimate"
21
21
 
22
22
  /**
23
23
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory)
24
24
  */
25
25
  @send
26
- external getDirectory: storageManager => Promise.t<fileSystemDirectoryHandle> = "getDirectory"
26
+ external getDirectory: storageManager => promise<fileSystemDirectoryHandle> = "getDirectory"
@@ -0,0 +1,12 @@
1
+ open UIEventsAPI
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CompositionEvent)
5
+ */
6
+ @new
7
+ external make: (~type_: string, ~eventInitDict: compositionEventInit=?) => compositionEvent =
8
+ "CompositionEvent"
9
+
10
+ include UIEvent.Impl({
11
+ type t = compositionEvent
12
+ })
@@ -0,0 +1,36 @@
1
+ open UIEventsAPI
2
+ open DOMAPI
3
+
4
+ /**
5
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransfer)
6
+ */
7
+ @new
8
+ external make: unit => dataTransfer = "DataTransfer"
9
+
10
+ /**
11
+ Uses the given element to update the drag feedback, replacing any previously specified feedback.
12
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage)
13
+ */
14
+ @send
15
+ external setDragImage: (dataTransfer, ~image: element, ~x: int, ~y: int) => unit = "setDragImage"
16
+
17
+ /**
18
+ Returns the specified data. If there is no such data, returns the empty string.
19
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)
20
+ */
21
+ @send
22
+ external getData: (dataTransfer, string) => string = "getData"
23
+
24
+ /**
25
+ Adds the specified data.
26
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)
27
+ */
28
+ @send
29
+ external setData: (dataTransfer, ~format: string, ~data: string) => unit = "setData"
30
+
31
+ /**
32
+ Removes the data of the specified formats. Removes all data if the argument is omitted.
33
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)
34
+ */
35
+ @send
36
+ external clearData: (dataTransfer, ~format: string=?) => unit = "clearData"
@@ -0,0 +1,23 @@
1
+ open UIEventsAPI
2
+ open FileAPI
3
+ open FileAndDirectoryEntriesAPI
4
+
5
+ /**
6
+ Invokes the callback with the string data as the argument, if the drag data item kind is text.
7
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)
8
+ */
9
+ @send
10
+ external getAsString: (dataTransferItem, string => unit) => unit = "getAsString"
11
+
12
+ /**
13
+ Returns a File object, if the drag data item kind is File.
14
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)
15
+ */
16
+ @send
17
+ external getAsFile: dataTransferItem => file = "getAsFile"
18
+
19
+ /**
20
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry)
21
+ */
22
+ @send
23
+ external webkitGetAsEntry: dataTransferItem => fileSystemEntry = "webkitGetAsEntry"
@@ -0,0 +1,30 @@
1
+ open UIEventsAPI
2
+ open FileAPI
3
+
4
+ /**
5
+ Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
6
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)
7
+ */
8
+ @send
9
+ external add: (dataTransferItemList, ~data: string, ~type_: string) => dataTransferItem = "add"
10
+
11
+ /**
12
+ Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
13
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)
14
+ */
15
+ @send
16
+ external add2: (dataTransferItemList, file) => dataTransferItem = "add"
17
+
18
+ /**
19
+ Removes the indexth entry in the drag data store.
20
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove)
21
+ */
22
+ @send
23
+ external remove: (dataTransferItemList, int) => unit = "remove"
24
+
25
+ /**
26
+ Removes all the entries in the drag data store.
27
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)
28
+ */
29
+ @send
30
+ external clear: dataTransferItemList => unit = "clear"
@@ -0,0 +1,11 @@
1
+ open UIEventsAPI
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FocusEvent)
5
+ */
6
+ @new
7
+ external make: (~type_: string, ~eventInitDict: focusEventInit=?) => focusEvent = "FocusEvent"
8
+
9
+ include UIEvent.Impl({
10
+ type t = focusEvent
11
+ })
@@ -0,0 +1,18 @@
1
+ open UIEventsAPI
2
+ open DOMAPI
3
+
4
+ /**
5
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/InputEvent)
6
+ */
7
+ @new
8
+ external make: (~type_: string, ~eventInitDict: inputEventInit=?) => inputEvent = "InputEvent"
9
+
10
+ /**
11
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges)
12
+ */
13
+ @send
14
+ external getTargetRanges: inputEvent => array<staticRange> = "getTargetRanges"
15
+
16
+ include UIEvent.Impl({
17
+ type t = inputEvent
18
+ })
@@ -0,0 +1,18 @@
1
+ open UIEventsAPI
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)
5
+ */
6
+ @new
7
+ external make: (~type_: string, ~eventInitDict: keyboardEventInit=?) => keyboardEvent =
8
+ "KeyboardEvent"
9
+
10
+ /**
11
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState)
12
+ */
13
+ @send
14
+ external getModifierState: (keyboardEvent, string) => bool = "getModifierState"
15
+
16
+ include UIEvent.Impl({
17
+ type t = keyboardEvent
18
+ })
@@ -0,0 +1,29 @@
1
+ open UIEventsAPI
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MouseEvent)
5
+ */
6
+ @new
7
+ external make: (~type_: string, ~eventInitDict: mouseEventInit=?) => mouseEvent = "MouseEvent"
8
+
9
+ module Impl = (
10
+ T: {
11
+ type t
12
+ },
13
+ ) => {
14
+ external asMouseEvent: T.t => mouseEvent = "%identity"
15
+
16
+ include UIEvent.Impl({
17
+ type t = T.t
18
+ })
19
+
20
+ /**
21
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState)
22
+ */
23
+ @send
24
+ external getModifierState: (T.t, string) => bool = "getModifierState"
25
+ }
26
+
27
+ include Impl({
28
+ type t = mouseEvent
29
+ })
@@ -0,0 +1,23 @@
1
+ open UIEventsAPI
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/UIEvent)
5
+ */
6
+ @new
7
+ external make: (~type_: string, ~eventInitDict: uiEventInit=?) => uiEvent = "UIEvent"
8
+
9
+ module Impl = (
10
+ T: {
11
+ type t
12
+ },
13
+ ) => {
14
+ external asUIEvent: T.t => uiEvent = "%identity"
15
+
16
+ include Event.Impl({
17
+ type t = T.t
18
+ })
19
+ }
20
+
21
+ include Impl({
22
+ type t = uiEvent
23
+ })
@@ -0,0 +1,11 @@
1
+ open UIEventsAPI
2
+
3
+ /**
4
+ [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WheelEvent)
5
+ */
6
+ @new
7
+ external make: (~type_: string, ~eventInitDict: wheelEventInit=?) => wheelEvent = "WheelEvent"
8
+
9
+ include MouseEvent.Impl({
10
+ type t = wheelEvent
11
+ })