sikanhe / reason-nodejs

Node bindings for Reason and Bucklescript
MIT License
100 stars 18 forks source link

Removed all instances of BinaryLike.t and StringBuffer.t #18

Closed austindd closed 4 years ago

austindd commented 4 years ago

Things to note:

The FS module might need to be reworked a little bit. I'm not sure whether to leave arguments for file paths as type string or change them to Buffer.t. Not a huge deal either way, most likely. In either case, I change the "data" arguments for things like writeFile to be Buffer.t. I'm a little less concerned about passing file names as buffers...

P.S.

This really simplifies the API a lot. I think it will work out really well for the most part. There may be some edge cases we aren't considering, but edge cases are okay in my book. We can always address those situations as they come up.