package ezjs_min
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A bunch of js_of_ocaml shortcuts
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.2.3.tar.gz
md5=0e6cc68eb0ede22ee2888ec290f45ea3
sha512=984baf5c76a0edca969a404eda68bc6be8268cca10bca3b9745486f4226945ae1a80b937417491db9c09d9dc9dc1aa21c1c80381bba490b8b35094fa67e1509d
doc/ezjs_min.lwt/Ezjs_min_lwt/Promise/index.html
Module Ezjs_min_lwt.PromiseSource
include module type of struct include Ezjs_min.Promise end
Source
type ('a, 'b) promise_cs =
((unit, ('a -> unit) -> ('b -> unit) -> unit) Js_of_ocaml.Js.meth_callback ->
('a, 'b) promise0 Js_of_ocaml.Js.t)
Js_of_ocaml.Js.constrSource
val promise :
(('a -> unit) -> (Ezjs_min__.Js.error Js_of_ocaml.Js.t -> unit) -> unit) ->
('a, Ezjs_min__.Js.error Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.tSource
val jthen0 :
?error:('b Js_of_ocaml__Js.t -> unit) ->
('a, 'b Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t ->
('a -> unit) ->
unitSource
val jthen :
?error:(Ezjs_min__.Js.error Js_of_ocaml.Js.t -> unit) ->
'a promise Js_of_ocaml.Js.t ->
('a -> unit) ->
unitSource
val jthen0_opt :
('a, 'b Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t ->
('a -> unit) option ->
unitSource
val rthen :
'a promise Js_of_ocaml.Js.t ->
(('a, Ezjs_min__.Js.error Js_of_ocaml.Js.t) result -> unit) ->
unitSource
val to_lwt_opt :
('a -> 'b) option ->
'a promise t ->
('b option, Ezjs_min__.Js.error Js_of_ocaml.Js.t) result Lwt.tSource
val to_lwt_tr :
('a -> 'b) ->
'a promise t ->
('b, Ezjs_min__.Js.error Js_of_ocaml.Js.t) result Lwt.tSource
val to_lwt_cb_opt :
('a -> 'b) option ->
(('c, 'a -> unit) meth_callback optdef -> 'd) ->
'b option Lwt.tSource
val promise_lwt :
'a Lwt.t ->
('a, Ezjs_min__.Js.error Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.tSource
val promise_lwt_res :
('a, Ezjs_min__.Js.error Js_of_ocaml.Js.t) result Lwt.t ->
('a, Ezjs_min__.Js.error Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>