Skip to content

Commit

Permalink
Update ocamlformat to 0.26.0 (#1215)
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto authored Sep 9, 2023
1 parent 92cf54e commit d1ee79c
Show file tree
Hide file tree
Showing 9 changed files with 201 additions and 201 deletions.
2 changes: 1 addition & 1 deletion .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# upgrading the version, don't forget to update ocamlformat version for `deps` target in `Makefile`
version=0.25.1
version=0.26.0
profile=conventional
ocaml-version=4.14.0
break-separators=before
Expand Down
2 changes: 1 addition & 1 deletion src-bindings/interop/interop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module Regexp = struct
-> regexp:t
-> replacer:(string -> (Ojs.t list[@js.variadic]) -> string)
-> string
[@@js.call]]
[@@js.call]]

type replacer =
matched:string
Expand Down
8 changes: 4 additions & 4 deletions src-bindings/node/node.ml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module Buffer = struct
-> ?encoding:string
-> unit
-> unit
[@@js.call]]
[@@js.call]]

let append buf other = buf := concat [ !buf; other ]
end
Expand Down Expand Up @@ -165,7 +165,7 @@ module Fs = struct
val readDir : string -> string list Promise.t [@@js.global "fs.readDir"]

val readFile : string -> encoding:string -> string Promise.t
[@@js.global "fs.readFile"]
[@@js.global "fs.readFile"]

val exists : string -> bool Promise.t [@@js.global "fs.exists"]]

Expand Down Expand Up @@ -223,10 +223,10 @@ module ChildProcess = struct
-> ?callback:(exec_result or_undefined -> string -> string -> unit)
-> unit
-> t
[@@js.global "child_process.exec"]
[@@js.global "child_process.exec"]

val spawn : string -> string array -> ?options:Options.t -> unit -> t
[@@js.global "child_process.spawn"]
[@@js.global "child_process.spawn"]

val get_stdout : t -> Stream.Readable.t [@@js.get "stdout"]

Expand Down
8 changes: 4 additions & 4 deletions src-bindings/polka/polka.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Server = struct
[%js:
val close :
t -> ?callback:(Node.JsError.t or_undefined -> unit) -> unit -> t
[@@js.call "close"]
[@@js.call "close"]

val address : t -> Address.t or_undefined [@@js.call]

Expand Down Expand Up @@ -53,12 +53,12 @@ include
-> ?callback:(unit -> unit)
-> unit
-> polka
[@@js.call "listen"]
[@@js.call "listen"]

val get_ : polka -> string -> (unit -> unit) -> polka [@@js.call "get"]

val use_ : polka -> (Middleware.t list[@js.variadic]) -> polka
[@@js.call "use"]
[@@js.call "use"]

val server : polka -> Server.t [@@js.get]]

Expand All @@ -79,5 +79,5 @@ module Sirv = struct
[%js:
val serve :
string -> ?options:Options.t -> unit -> (Middleware.t[@js.dummy])
[@@js.global "sirv"]]
[@@js.global "sirv"]]
end
Loading

0 comments on commit d1ee79c

Please sign in to comment.