Skip to content

Commit 3380bbe

Browse files
matttaron
authored andcommitted
Add documentation comments to createFileOutput declaration
1 parent 0e609c4 commit 3380bbe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/stream.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ function createReadableStream({ url, fetch, options = {} }) {
9898
});
9999
}
100100

101+
/**
102+
* Create a new readable stream for an output file
103+
* created by running a Replicate model.
104+
*
105+
* @param {object} config
106+
* @param {string} config.url The URL to connect to.
107+
* @param {typeof fetch} [config.fetch] The URL to connect to.
108+
* @returns {ReadableStream<Uint8Array>}
109+
*/
101110
function createFileOutput({ url, fetch }) {
102111
let type = "application/octet-stream";
103112

0 commit comments

Comments
 (0)