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.

chore: fix `RequestTransform` return type

Martin Adámekfb14247191e5
diff --git a/src/enqueue_links/shared.js b/src/enqueue_links/shared.js
index d71f367e0..e24042d56 100644
--- a/src/enqueue_links/shared.js
+++ b/src/enqueue_links/shared.js
@@ -116,5 +116,5 @@ export async function addRequestsToQueueInBatches(requests, requestQueue, batchS
* {@link utils#enqueueLinks} to modify requests before enqueuing them.
* @callback RequestTransform
* @param {RequestOptions} original Request options to be modified.
- * @return {RequestOptions} The modified request options to enqueue.
+ * @return {RequestOptions | null | undefined | false} The modified request options to enqueue.
*/