Skip to content

Commit d4692ba

Browse files
committed
readFileWith takes options, not just encoding
1 parent 5af9687 commit d4692ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fs.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ module FileHandle = {
279279
) => Js.Promise.t<readInfo> = "read"
280280
@send external readFile: t => Js.Promise.t<Buffer.t> = "readFile"
281281
@send
282-
external readFileWith: (t, ~encoding: string) => Js.Promise.t<string> = "readFile"
282+
external readFileWith: (t, readFileOptions) => Js.Promise.t<string> = "readFile"
283283

284284
@send external stat: t => Js.Promise.t<Stats.t> = "stat"
285285
@send external sync: t => Js.Promise.t<unit> = "sync"

0 commit comments

Comments
 (0)