fs.write() and tls.connect() overloading should be separate methods instead #7039
Labels
feature request
Issues that request new features to be added to Node.js.
invalid
Issues and PRs that are invalid.
fs.write()
andtls.connect()
have two different, incompatible signatures:This came up while making a library that wraps the Node API to promisify the callback methods; the masked inner signature is impossible to promisify in a generic way, and this problem also affects promisify-node. The inner method should just have its own name; using overloading for it is just unnecessary added complexity.
The text was updated successfully, but these errors were encountered: