Skip to content

Commit 0033bf6

Browse files
committed
revert js_result, use deprecation only
1 parent 3f48d05 commit 0033bf6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

jscomp/others/js_result.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@
2222
* along with this program; if not, write to the Free Software
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

25-
type ('a, 'b) t = ('a, 'b) Belt_Result.t = Ok of 'a | Error of 'b
25+
type (+'good, +'bad) t =
26+
| Ok of 'good
27+
| Error of 'bad
2628
[@@ocaml.deprecated "Please use `Belt.Result.t` instead"]

jscomp/others/js_result.mli

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@
2222
* along with this program; if not, write to the Free Software
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

25-
type ('a, 'b) t = ('a, 'b) Belt_Result.t = Ok of 'a | Error of 'b
25+
type (+'good, +'bad) t =
26+
| Ok of 'good
27+
| Error of 'bad
2628
[@@ocaml.deprecated "Please use `Belt.Result.t` instead"]

0 commit comments

Comments
 (0)