t(Belt.Result.t(int, exn)),
  Js.Promise.t(Belt.Result.t(int, exn)) => Js.Promise.t(
    Belt.Result.t(int, exn)
  )
) => Js.Promise.t(Belt.Result.t(int, exn))">|&gt;</span> (<span class='ident' data-type="(
  int => Belt.Result.t(int, exn),
  Js.Promise.t(Belt.Result.t(int, exn))
) => Js.Promise.t(Belt.Result.t(int, exn))">Result.Promise.flatMap</span> (fun <span class='pattern-ident' data-type="int">x</span>  -&gt; <span class='ident' data-type="int => Belt.Result.t(int, exn)">Result.return</span> (<span 