@@ -38,7 +38,7 @@ type _ kind =
3838 | Number : float kind
3939 | Object : t Js_dict .t kind
4040 | Array : t array kind
41- | Boolean : Js .boolean kind
41+ | Boolean : bool kind
4242 | Null : Js_types .null_val kind
4343
4444type tagged_t =
@@ -75,7 +75,7 @@ val decodeArray : t -> t array option
7575(* * [decodeArray json] returns [Some a] if [json] is an array, [None]
7676 otherwise *)
7777
78- val decodeBoolean : t -> Js .boolean option
78+ val decodeBoolean : t -> bool option
7979(* * [decodeBoolean json] returns [Some b] if [json] is a boolean, [None]
8080 otherwise *)
8181
@@ -98,8 +98,8 @@ external string : string -> t = "%identity"
9898external number : float -> t = " %identity"
9999(* * [number n] makes a JSON number of the [float] [n] *)
100100
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] *)
103103
104104external object_ : t Js_dict .t -> t = " %identity"
105105(* * [object_ dict] makes a JSON objet of the [Js.Dict.t] [dict] *)
@@ -118,8 +118,8 @@ external stringArray : string array -> t = "%identity"
118118external numberArray : float array -> t = " %identity"
119119(* * [numberArray a] makes a JSON array of the [float array] [a] *)
120120
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] *)
123123
124124external objectArray : t Js_dict .t array -> t = " %identity"
125125(* * [objectArray a] makes a JSON array of the [JsDict.t array] [a] *)
0 commit comments