File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ exports.Headers = Headers
38
38
/**
39
39
* Takes fetch options and wraps request body to track upload progress if
40
40
* `onUploadProgress` is supplied. Otherwise returns options as is.
41
+ *
41
42
* @param {FetchOptions } options
42
43
* @returns {FetchOptions }
43
44
*/
@@ -57,6 +58,7 @@ const withUploadProgress = (options) => {
57
58
/**
58
59
* Takes request `body` and `onUploadProgress` handler and returns wrapped body
59
60
* that as consumed will report progress to supplied `onUploadProgress` handler.
61
+ *
60
62
* @param {FetchOptions } init
61
63
* @param {function(LoadProgress):void } onUploadProgress
62
64
* @returns {Readable }
@@ -97,6 +99,7 @@ const normalizeBody = (input = null) => {
97
99
* Takes body from native-fetch response as body and `onUploadProgress` handler
98
100
* and returns async iterable that emits body chunks and emits
99
101
* `onUploadProgress`.
102
+ *
100
103
* @param {Buffer|null|Readable } body
101
104
* @param {function(LoadProgress):void } onUploadProgress
102
105
* @returns {AsyncIterable<Buffer> }
You can’t perform that action at this time.
0 commit comments