Skip to content

Commit beca4f6

Browse files
committed
Standardised on With methods instead of optional args
1 parent d4692ba commit beca4f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Fs.res

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ external rmdirSync: string => unit = "rmdirSync"
243243
external openSyncWith: (string, ~flag: Flag.t=?, ~mode: int=?) => fd = "openSync"
244244

245245
@module("fs")
246-
external readFileSync: (string, ~options: readFileOptions=?, unit) => Buffer.t = "readFileSync"
246+
external readFileSync: (string) => Buffer.t = "readFileSync"
247+
@module("fs")
248+
external readFileSyncWith: (string, readFileOptions) => Buffer.t = "readFileSync"
249+
247250
@module("fs") external existsSync: string => bool = "existsSync"
248251

249252
@val @module("fs")

0 commit comments

Comments
 (0)