Skip to content

Commit fdbb5d0

Browse files
authored
Fix JSDoc linting issues (#75)
* Update jsdoc annotation for wait parameter to accept boolean * Fix eslint warning jsdoc/newline-after-description
1 parent da11bac commit fdbb5d0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/collections.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ async function getCollection(collection_slug) {
1212

1313
/**
1414
* Fetch a list of model collections
15+
*
1516
* @returns {Promise<object>} - Resolves with the collections data
1617
*/
1718
async function listCollections() {

lib/predictions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @param {object} options
55
* @param {string} options.version - Required. The model version
66
* @param {object} options.input - Required. An object with the model inputs
7-
* @param {object} [options.wait] - Whether to wait for the prediction to finish. Defaults to false
7+
* @param {boolean|object} [options.wait] - Whether to wait for the prediction to finish. Defaults to false
88
* @param {number} [options.wait.interval] - Polling interval in milliseconds. Defaults to 250
99
* @param {number} [options.wait.maxAttempts] - Maximum number of polling attempts. Defaults to no limit
1010
* @param {string} [options.webhook] - An HTTPS URL for receiving a webhook when the prediction has new output

0 commit comments

Comments
 (0)