-
Notifications
You must be signed in to change notification settings - Fork 8
File Storage API downloadRetrieve method returns ReadableStream #46
Copy link
Copy link
Open
Description
Problem
The downloadRetrieve method is typed as returning a Readable node stream:
merge-node-client/src/api/resources/filestorage/resources/files/client/Client.ts
Line 330 in ffa041c
| ): 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 trueWould it be possible to update the API to return a node stream instead of the web stream?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels