Closed paperdave closed 2 years ago
native readable streams (objects with a getReader() function), and the native readers (objects with read()
) probably easy. idk what nodejs readable streams are exactly but I believe they're just an event emitter with a data and {end or close} events. I might pick this up soon because I've been a bit silent on my code progress and this small fix might kickstart my work back into motion.
Even if we don't have #48, it would be cool to accept these objects as a parameter
file[].data
.To implement this, inspect the readablestream api for something we can detect and use, then add it to the
toBlob
method inpackages/rest/src/utils.ts