forked from TheSpyder/rescript-webapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebapi.res
38 lines (27 loc) · 1.02 KB
/
Webapi.res
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module Base64 = Webapi__Base64
/** @since 0.18.0 */
module Blob = Webapi__Blob
module Canvas = Webapi__Canvas
module Dom = Webapi__Dom
module File = Webapi__File
/** Re-export from [bs-fetch] for convenience. To use, you will also
need to add the [bs-fetch] package as a dependency.
To get the [FormData] of an HTML form, use
[Webapi.Dom.HtmlFormElement.data].
@since 0.18.0 */
module FormData = Fetch.FormData
/** Re-export from [bs-fetch] for convenience. See also
{!module:FormData}.
@since 0.18.0 */
module Iterator = FormData.Iterator
module Performance = Webapi__Performance
/** @since 0.19.0 */
module ReadableStream = Webapi__ReadableStream
module IntersectionObserver = Webapi__IntersectionObserver
module ResizeObserver = Webapi__ResizeObserver
module Url = Webapi__Url
type rafId
@val external requestAnimationFrame: (float => unit) => unit = ""
@val
external requestCancellableAnimationFrame: (float => unit) => rafId = "requestAnimationFrame"
@val external cancelAnimationFrame: rafId => unit = ""