Skip to content

Commit 28589d8

Browse files
authored
Merge pull request #4100 from sawoz/exit_return_a_instead_of_unit
Make node process exit return 'a instead of unit
2 parents 0766477 + 07422e0 commit 28589d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jscomp/others/node_process.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type t =
3737

3838
external process : t = "process" [@@bs.module]
3939
external argv : string array = "argv" [@@bs.module "process"]
40-
external exit : int -> unit = "exit" [@@bs.module "process"]
40+
external exit : int -> 'a = "exit" [@@bs.module "process"]
4141
external cwd : unit -> string = "cwd" [@@bs.module "process"]
4242
(** The process.uptime() method returns the number of seconds
4343
the current Node.js process has been running.) *)

jscomp/others/node_process.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type t =
3535

3636
external process : t = "process" [@@bs.module]
3737
external argv : string array = "argv" [@@bs.module "process"]
38-
external exit : int -> unit = "exit" [@@bs.module "process"]
38+
external exit : int -> 'a = "exit" [@@bs.module "process"]
3939
external cwd : unit -> string = "cwd" [@@bs.module "process"]
4040
(** The process.uptime() method returns the number of seconds
4141
the current Node.js process has been running.) *)

0 commit comments

Comments
 (0)