Problem
The downloadRetrieve method is typed as returning a Readable node stream:
|
): Promise<stream.Readable> { |
The api does not return a node stream, it returns a ReadableStream
Steps to Reproduce
import { PassThrough, Readable } from 'node:stream'
const readable = await merge.filestorage.files.downloadRetrieve(fileId)
const isReadable = readable instanceof Readable // returns false
const isReadableStream = readable instanceof ReadableStream // returns true
Would it be possible to update the API to return a node stream instead of the web stream?