Skip to content

File Storage API downloadRetrieve method returns ReadableStream #46

@pandektes-braedon

Description

@pandektes-braedon

Problem

The downloadRetrieve method is typed as returning a Readable node stream:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions