Ezjs_min_lwt.PromiseSourceinclude module type of struct include Ezjs_min.Promise endtype ('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.constrval jthen0 :
?error:('b Js_of_ocaml__Js.t -> unit) ->
('a, 'b Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t ->
('a -> unit) ->
unitval jthen :
?error:(Js_of_ocaml.Js.Js_error.error_t -> unit) ->
'a promise Js_of_ocaml.Js.t ->
('a -> unit) ->
unitval jthen0_opt :
('a, 'b Js_of_ocaml.Js.t) promise0 Js_of_ocaml.Js.t ->
('a -> unit) option ->
unitval rthen :
'a promise Js_of_ocaml.Js.t ->
(('a, Js_of_ocaml.Js.Js_error.error_t) result -> unit) ->
unitval to_lwt_opt :
('a -> 'b) option ->
'a promise t ->
('b option, Js_of_ocaml.Js.Js_error.error_t) result Lwt.tval to_lwt_tr :
('a -> 'b) ->
'a promise t ->
('b, Js_of_ocaml.Js.Js_error.error_t) result Lwt.tval to_lwt_cb_opt :
('a -> 'b) option ->
(('c, 'a -> unit) meth_callback optdef -> 'd) ->
'b option Lwt.t