Skip to content

Commit 1a422eb

Browse files
author
Denis Rechkunov
committed
Merge pull request #4 from ForNeVeR/feature/jsdoc-fix
jsdoc fix
2 parents 3889c35 + 7691f08 commit 1a422eb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

lib/UHRBase.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function UHRBase() {
9999
* @param {string} url URL to request.
100100
* @param {Object?} options Request parameters.
101101
* @param {Object?} options.headers HTTP headers to send.
102-
* @param {String|Object?} options.data Data to send.
102+
* @param {(String|Object)?} options.data Data to send.
103103
* @param {Number?} options.timeout Request timeout.
104104
* @param {Boolean?} options.unsafeHTTPS If true then requests to servers with
105105
* invalid HTTPS certificates are allowed.
@@ -118,7 +118,7 @@ UHRBase.prototype.get = function (url, options) {
118118
* @param {string} url URL to request.
119119
* @param {Object?} options Request parameters.
120120
* @param {Object?} options.headers HTTP headers to send.
121-
* @param {String|Object?} options.data Data to send.
121+
* @param {(String|Object)?} options.data Data to send.
122122
* @param {Number?} options.timeout Request timeout.
123123
* @param {Boolean?} options.unsafeHTTPS If true then requests to servers with
124124
* invalid HTTPS certificates are allowed.
@@ -137,7 +137,7 @@ UHRBase.prototype.post = function (url, options) {
137137
* @param {string} url URL to request.
138138
* @param {Object?} options Request parameters.
139139
* @param {Object?} options.headers HTTP headers to send.
140-
* @param {String|Object?} options.data Data to send.
140+
* @param {(String|Object)?} options.data Data to send.
141141
* @param {Number?} options.timeout Request timeout.
142142
* @param {Boolean?} options.unsafeHTTPS If true then requests to servers with
143143
* invalid HTTPS certificates are allowed.
@@ -156,7 +156,7 @@ UHRBase.prototype.put = function (url, options) {
156156
* @param {string} url URL to request.
157157
* @param {Object?} options Request parameters.
158158
* @param {Object?} options.headers HTTP headers to send.
159-
* @param {String|Object?} options.data Data to send.
159+
* @param {(String|Object)?} options.data Data to send.
160160
* @param {Number?} options.timeout Request timeout.
161161
* @param {Boolean?} options.unsafeHTTPS If true then requests to servers with
162162
* invalid HTTPS certificates are allowed.
@@ -175,7 +175,7 @@ UHRBase.prototype.patch = function (url, options) {
175175
* @param {string} url URL to request.
176176
* @param {Object?} options Request parameters.
177177
* @param {Object?} options.headers HTTP headers to send.
178-
* @param {String|Object?} options.data Data to send.
178+
* @param {(String|Object)?} options.data Data to send.
179179
* @param {Number?} options.timeout Request timeout.
180180
* @param {Boolean?} options.unsafeHTTPS If true then requests to servers with
181181
* invalid HTTPS certificates are allowed.
@@ -194,7 +194,7 @@ UHRBase.prototype.delete = function (url, options) {
194194
* @param {String} parameters.method HTTP method.
195195
* @param {String} parameters.url URL for request.
196196
* @param {Object?} parameters.headers HTTP headers to send.
197-
* @param {String|Object?} parameters.data Data to send.
197+
* @param {(String|Object)?} parameters.data Data to send.
198198
* @param {Number?} parameters.timeout Request timeout.
199199
* @param {Boolean?} parameters.unsafeHTTPS If true then requests
200200
* to servers with invalid HTTPS certificates are allowed.
@@ -214,7 +214,7 @@ UHRBase.prototype.request = function (parameters) {
214214
* @param {String} parameters.method HTTP method.
215215
* @param {String} parameters.url URL for request.
216216
* @param {Object?} parameters.headers HTTP headers to send.
217-
* @param {String|Object?} parameters.data Data to send.
217+
* @param {(String|Object)?} parameters.data Data to send.
218218
* @param {Number?} parameters.timeout Request timeout.
219219
* @param {Boolean?} parameters.unsafeHTTPS If true then requests
220220
* to servers with invalid HTTPS certificates are allowed.
@@ -443,4 +443,4 @@ function findContentType(headers) {
443443
name: contentTypeHeader,
444444
type: contentType
445445
};
446-
}
446+
}

0 commit comments

Comments
 (0)