We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--- a/src/Fs.res +++ b/src/Fs.res @@ -248,7 +248,7 @@ external openSyncWith: (string, ~flag: Flag.t=?, ~mode: int=?) => fd = "openSync @module("node:fs") external readFileSync: string => Buffer.t = "readFileSync" @module("node:fs") -external readFileSyncWith: (string, readFileOptions) => Buffer.t = "readFileSync" +external readFileSyncWith: (string, readFileOptions) => string = "readFileSync" @module("node:fs") external existsSync: string => bool = "existsSync"
The text was updated successfully, but these errors were encountered:
If it's true there, it would be true of readFileSync as well.
readFileSync
Turns out the return value is based on the encoding option: https://nodejs.org/api/fs.html#filehandlereadfileoptions
encoding
That's going to be interesting to bind.
Sorry, something went wrong.
The same goes for write, I think
No branches or pull requests
The text was updated successfully, but these errors were encountered: