Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Fix docs - waitSecs - string => number (#644)

Lukáš Křivka19613d40ecc1
diff --git a/src/actor.js b/src/actor.js
index d88ef010d..4752bba7a 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -337,7 +337,7 @@ let callMemoryWarningIssued = false;
* @param {string} [options.build]
* Tag or number of the actor build to run (e.g. `beta` or `1.2.345`).
* If not provided, the run uses build tag or number from the default actor run configuration (typically `latest`).
- * @param {string} [options.waitSecs]
+ * @param {number} [options.waitSecs]
* Maximum time to wait for the actor run to finish, in seconds.
* If the limit is reached, the returned promise is resolved to a run object that will have
* status `READY` or `RUNNING` and it will not contain the actor run output.
@@ -478,7 +478,7 @@ export const call = async (actId, input, options = {}) => {
* @param {string} [options.build]
* Tag or number of the actor build to run (e.g. `beta` or `1.2.345`).
* If not provided, the run uses build tag or number from the default actor run configuration (typically `latest`).
- * @param {string} [options.waitSecs]
+ * @param {number} [options.waitSecs]
* Maximum time to wait for the actor task run to finish, in seconds.
* If the limit is reached, the returned promise is resolved to a run object that will have
* status `READY` or `RUNNING` and it will not contain the actor run output.