From 80beedb46f281367019c784934093f25912fbc1a Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 31 Oct 2024 20:03:19 -0300 Subject: [PATCH] Update index.ts --- apps/js-sdk/firecrawl/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/js-sdk/firecrawl/src/index.ts b/apps/js-sdk/firecrawl/src/index.ts index bbe934fe..7ad5a5f0 100644 --- a/apps/js-sdk/firecrawl/src/index.ts +++ b/apps/js-sdk/firecrawl/src/index.ts @@ -90,7 +90,8 @@ export interface CrawlScrapeOptions { export type Action = { type: "wait", - milliseconds: number, + milliseconds?: number, + selector?: string, } | { type: "click", selector: string, @@ -106,6 +107,8 @@ export type Action = { } | { type: "scroll", direction: "up" | "down", +} | { + type: "scrape", }; export interface ScrapeParams extends CrawlScrapeOptions {