We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1822a58 commit 647a63bCopy full SHA for 647a63b
src/grille_pain/internals/global.gleam
@@ -1,3 +1,5 @@
1
+import grille_pain/internals/unsafe
2
+
3
pub type AnimationFrame
4
5
@external(javascript, "./global.ffi.mjs", "setTimeout")
@@ -11,4 +13,6 @@ pub fn now() -> Int {
11
13
}
12
14
15
@external(javascript, "./global.ffi.mjs", "requestAnimationFrame")
-pub fn request_animation_frame(next: fn() -> Nil) -> AnimationFrame
16
+pub fn request_animation_frame(_next: fn() -> Nil) -> AnimationFrame {
17
+ unsafe.coerce(0)
18
+}
0 commit comments