@@ -82,34 +82,19 @@ external test : 'a nullable -> bool = "#is_nil_undef"
82
82
(* * The same as {!test} except that it is more permissive on the types of input *)
83
83
external testAny : 'a -> bool = " #is_nil_undef"
84
84
85
- type boolean = bool
86
- [@@ ocaml.deprecated "Use type bool instead" ]
87
- (* * The value could be either {!Js.true_} or {!Js.false_}.
88
- Note in BuckleScript, [boolean] has different representation from OCaml's [bool],
89
- see conversion functions in {!Boolean} *)
90
85
91
86
type (+'a, +'e) promise
92
87
(* * The promise type, defined here for interoperation across packages
93
88
@deprecated please use {!Js.Promise}
94
89
*)
95
90
96
-
97
- val true_ : bool
98
- [@@ ocaml.deprecated "Use true directly" ]
99
-
100
- val false_ : bool
101
- [@@ ocaml.deprecated "Use false directly" ]
102
-
103
91
external null : 'a null = " #null"
104
92
(* * The same as [empty] in {!Js.Null} will be compiled as [null]*)
105
93
106
94
external undefined : 'a undefined = " #undefined"
107
95
(* * The same as [empty] {!Js.Undefined} will be compiled as [undefined]*)
108
96
109
97
110
- external to_bool : bool -> bool = " %identity"
111
- [@@ ocaml.deprecated "This function is not needed any more" ]
112
- (* * convert Js boolean to OCaml bool *)
113
98
114
99
external typeof : 'a -> string = " #typeof"
115
100
(* * [typeof x] will be compiled as [typeof x] in JS
@@ -172,8 +157,6 @@ module Array = Js_array
172
157
(* * Provide bindings to Js array*)
173
158
module String = Js_string
174
159
(* * Provide bindings to JS string *)
175
- module Boolean = Js_boolean
176
- (* * Provide utilities for {!boolean} *)
177
160
178
161
module Re = Js_re
179
162
(* * Provide bindings to Js regex expression *)
0 commit comments