File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ module Decode = struct
70
70
let oks, errs =
71
71
arr
72
72
|> Js.Array. reducei
73
- (fun (oks , errs ) x i ->
73
+ ~f: (fun (oks , errs ) x i ->
74
74
match decoder.dec x with
75
75
| Ok a ->
76
76
let _ = Js.Array. push a oks in
@@ -82,7 +82,7 @@ module Decode = struct
82
82
errs
83
83
in
84
84
(oks, errs) )
85
- ([||], [||])
85
+ ~init: ([||], [||])
86
86
in
87
87
if Js.Array. length errs > 0
88
88
then
@@ -123,5 +123,5 @@ module Encode = struct
123
123
include Encode. Make (Json_encodeable )
124
124
125
125
let array encoder xs =
126
- xs |> Js.Array. map (fun x -> encoder x) |> Js.Json. array
126
+ xs |> Js.Array. map ~f: (fun x -> encoder x) |> Js.Json. array
127
127
end
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module DOMParser = struct
12
12
[@@ mel.get]
13
13
14
14
external querySelector :
15
- Dom .element -> string -> Dom .element Js .null_undefined = " querySelector"
15
+ Dom .element -> string -> Dom .element Js .nullable = " querySelector"
16
16
[@@ mel.send]
17
17
18
18
external textContent : Dom .element -> string = " textContent" [@@ mel.get]
@@ -96,7 +96,7 @@ module Element = struct
96
96
97
97
98
98
external append : Dom .element -> Dom .node array -> unit = " append"
99
- [@@ mel.send] [@@ variadic]
99
+ [@@ mel.send] [@@ mel. variadic]
100
100
101
101
external setAttribute : Dom .element -> string -> string -> unit
102
102
= " setAttribute"
@@ -114,10 +114,10 @@ end
114
114
115
115
module Document = struct
116
116
external createElementNS : string -> string -> Dom .element = " createElementNS"
117
- [@@ scope "window" , "document" ]
117
+ [@@ mel. scope "window" , "document" ]
118
118
119
119
external createTextNode : string -> Dom .text = " createTextNode"
120
- [@@ scope "window" , "document" ]
120
+ [@@ mel. scope "window" , "document" ]
121
121
end
122
122
123
123
module Encode = struct
You can’t perform that action at this time.
0 commit comments