// Generated by ReScript, PLEASE EDIT WITH CARE

import * as Curry from "rescript/lib/es6/curry.js";
import * as Js_exn from "rescript/lib/es6/js_exn.js";
import * as Caml_exceptions from "rescript/lib/es6/caml_exceptions.js";

var JsError = /* @__PURE__ */Caml_exceptions.create("Promise-Myplugin.JsError");

function $$catch(promise, callback) {
  return promise.catch(function (err) {
              return Curry._1(callback, Js_exn.anyToExnInternal(err));
            });
}

export {
  JsError ,
  $$catch ,
  
}
/* No side effect */
