From 45d51129cbd90c77c8125dcb37111033effba635 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Thu, 25 May 2023 14:12:59 -0700 Subject: [PATCH 1/2] Update jsdoc annotation for wait parameter to accept boolean --- lib/predictions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/predictions.js b/lib/predictions.js index 47f2b51..3ec8546 100644 --- a/lib/predictions.js +++ b/lib/predictions.js @@ -4,7 +4,7 @@ * @param {object} options * @param {string} options.version - Required. The model version * @param {object} options.input - Required. An object with the model inputs - * @param {object} [options.wait] - Whether to wait for the prediction to finish. Defaults to false + * @param {boolean|object} [options.wait] - Whether to wait for the prediction to finish. Defaults to false * @param {number} [options.wait.interval] - Polling interval in milliseconds. Defaults to 250 * @param {number} [options.wait.maxAttempts] - Maximum number of polling attempts. Defaults to no limit * @param {string} [options.webhook] - An HTTPS URL for receiving a webhook when the prediction has new output From ef90affcb98bede65c9ae4a611693494ea98a9d9 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Thu, 25 May 2023 14:13:24 -0700 Subject: [PATCH 2/2] Fix eslint warning jsdoc/newline-after-description --- lib/collections.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/collections.js b/lib/collections.js index 195bf8e..de6f814 100644 --- a/lib/collections.js +++ b/lib/collections.js @@ -12,6 +12,7 @@ async function getCollection(collection_slug) { /** * Fetch a list of model collections + * * @returns {Promise} - Resolves with the collections data */ async function listCollections() {