@@ -38,7 +38,7 @@ type _ kind =
38
38
| Number : float kind
39
39
| Object : t Js_dict .t kind
40
40
| Array : t array kind
41
- | Boolean : Js .boolean kind
41
+ | Boolean : bool kind
42
42
| Null : Js_types .null_val kind
43
43
44
44
type tagged_t =
@@ -75,7 +75,7 @@ val decodeArray : t -> t array option
75
75
(* * [decodeArray json] returns [Some a] if [json] is an array, [None]
76
76
otherwise *)
77
77
78
- val decodeBoolean : t -> Js .boolean option
78
+ val decodeBoolean : t -> bool option
79
79
(* * [decodeBoolean json] returns [Some b] if [json] is a boolean, [None]
80
80
otherwise *)
81
81
@@ -98,8 +98,8 @@ external string : string -> t = "%identity"
98
98
external number : float -> t = " %identity"
99
99
(* * [number n] makes a JSON number of the [float] [n] *)
100
100
101
- external boolean : Js .boolean -> t = " %identity"
102
- (* * [boolean b] makes a JSON boolean of the [Js.boolean ] [b] *)
101
+ external boolean : bool -> t = " %identity"
102
+ (* * [boolean b] makes a JSON boolean of the [bool ] [b] *)
103
103
104
104
external object_ : t Js_dict .t -> t = " %identity"
105
105
(* * [object_ dict] makes a JSON objet of the [Js.Dict.t] [dict] *)
@@ -118,8 +118,8 @@ external stringArray : string array -> t = "%identity"
118
118
external numberArray : float array -> t = " %identity"
119
119
(* * [numberArray a] makes a JSON array of the [float array] [a] *)
120
120
121
- external booleanArray : Js .boolean array -> t = " %identity"
122
- (* * [booleanArray] makes a JSON array of the [Js.boolean array] [a] *)
121
+ external booleanArray : bool array -> t = " %identity"
122
+ (* * [booleanArray] makes a JSON array of the [bool array] [a] *)
123
123
124
124
external objectArray : t Js_dict .t array -> t = " %identity"
125
125
(* * [objectArray a] makes a JSON array of the [JsDict.t array] [a] *)
0 commit comments