-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
(cram enable) | ||
|
||
(name server-reason-react) | ||
(version e08f6bb) | ||
|
||
(license MIT) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
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 ResizeObserver = Webapi__ResizeObserver; | ||
module Url = Webapi__Url; | ||
|
||
type rafId; | ||
|
||
[@bs.val] | ||
external requestAnimationFrame: (float => unit) => unit = | ||
"requestAnimationFrame"; | ||
[@bs.val] | ||
external requestCancellableAnimationFrame: (float => unit) => rafId = | ||
"requestAnimationFrame"; | ||
[@bs.val] | ||
external cancelAnimationFrame: rafId => unit = "cancelAnimationFrame"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(include_subdirs unqualified) | ||
|
||
(library | ||
(name webapi) | ||
(public_name server-reason-react.webapi) | ||
(wrapped false) | ||
(libraries | ||
server-reason-react.melange-fetch | ||
server-reason-react.js | ||
server-reason-react.melange-runtime) | ||
(preprocess | ||
(pps melange.ppx))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters