minio-js
minio-js copied to clipboard
Discrepancy between docs and TS typings
Hi everyone,
I've encounterd an issue. As I was copying code from examples some of them suggested putting error callback in putObject method as 6th argument. TS gives an error, it says that only 5 arguments are expected. Version 7.1.4 and version 8.0.1 give same error.
API reference https://min.io/docs/minio/linux/developers/javascript/API.html#putObject
Screenshot of TS suggestions:
From what I see in the code, there is no argument either, so probably docs need an update. Is it a correct repo for this issue then?
We will update the docs. It will happen once the release is done. We will also update the examples. Thank you for reporting.
The minio.d.ts has been updated.