Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update index.ts

Nicolas80beedb46f28
diff --git a/apps/js-sdk/firecrawl/src/index.ts b/apps/js-sdk/firecrawl/src/index.ts
index bbe934fed..7ad5a5f0f 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<LLMSchema extends zt.ZodSchema = any, ActionsSchema extends (Action[] | undefined) = undefined> extends CrawlScrapeOptions {