Skip to content

Commit 30c6e16

Browse files
author
Cristiano Calcagno
committed
Only mention boolean once in js.mli
1 parent 9cbd8fd commit 30c6e16

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

jscomp/runtime/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BS_COMMON_FLAGS= -absname -no-alias-deps -bs-no-version-header -bs-diagnose -bs-
4040

4141
BS_FLAGS= $(BS_COMMON_FLAGS) $(BS_PKG_FLAGS)
4242

43-
COMPFLAGS += $(BS_FLAGS) -I ../stdlib -nostdlib -nopervasives -open Pervasives -unsafe -warn-error -3 -w -40-49-103 -bin-annot
43+
COMPFLAGS += $(BS_FLAGS) -I ../stdlib -nostdlib -nopervasives -open Pervasives -unsafe -warn-error A -w -40-49-103 -bin-annot
4444

4545

4646
$(RUNTIME): $(COMPILER)

jscomp/runtime/js.mli

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ type (+'a, +'e) promise
9494
*)
9595

9696

97-
val true_ : boolean
97+
val true_ : bool
9898
[@@ocaml.deprecated "Use true directly"]
9999

100-
val false_ : boolean
100+
val false_ : bool
101101
[@@ocaml.deprecated "Use false directly"]
102102

103103
external null : 'a null = "#null"
@@ -107,7 +107,8 @@ external undefined : 'a undefined = "#undefined"
107107
(** The same as [empty] {!Js.Undefined} will be compiled as [undefined]*)
108108

109109

110-
external to_bool : boolean -> bool = "%identity"
110+
external to_bool : bool -> bool = "%identity"
111+
[@@ocaml.deprecated "This function is not needed any more"]
111112
(** convert Js boolean to OCaml bool *)
112113

113114
external typeof : 'a -> string = "#typeof"

0 commit comments

Comments
 (0)