Skip to content

Commit df16b63

Browse files
committed
Use Js_result.t
1 parent 2a77fbf commit df16b63

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

jscomp/others/belt_Result.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

2525

26-
type ('a, 'b) t =
27-
| Ok of 'a
28-
| Error of 'b
26+
type ('a,'b) t = ('a, 'b) Js_result.t
2927

3028
let getExn = function
3129
| Ok x -> x

jscomp/others/belt_Result.mli

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
Utilities for result data type.
2828
*)
2929

30-
type ('a, 'b) t =
31-
| Ok of 'a
32-
| Error of 'b
30+
type ('a,'b) t = ('a, 'b) Js_result.t
3331

3432
val getExn : ('a, 'b) t -> 'a
3533
val mapWithDefaultU : ('a, 'c) t -> 'b -> ('a -> 'b [@bs]) -> 'b

0 commit comments

Comments
 (0)