minio-js icon indicating copy to clipboard operation
minio-js copied to clipboard

Discrepancy between docs and TS typings

Open a-babarytskyi opened this issue 1 year ago • 1 comments

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:

Screenshot 2024-07-18 at 21 01 01

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?

a-babarytskyi avatar Jul 18 '24 19:07 a-babarytskyi