Closed Louis-Tian closed 4 months ago
stream.Readable is from NodeJs. so it would not be appropriate to add here.
Sorry, I don't understand your point here. dataStream here clearly is not just a stream.Readable isn't it? It extends the Readable interface. Not only that typing is incomplete, the official documentation does not mention the existence of the "headers" property at all. You might argue that it's not an offical API, but in that is the case, it means the library provides no official way to fetch data and metadata from an object in a single call.
It was mentioned here that the getObject callback's dataStream parameter have a headers property. This is not currently being reflexed in type definition.
Originally posted by @prakashsvmx in https://github.com/minio/minio-js/issues/900#issuecomment-770568125