mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 16:08:59 +08:00
Update index.ts
This commit is contained in:
parent
446acfccde
commit
80beedb46f
@ -90,7 +90,8 @@ export interface CrawlScrapeOptions {
|
|||||||
|
|
||||||
export type Action = {
|
export type Action = {
|
||||||
type: "wait",
|
type: "wait",
|
||||||
milliseconds: number,
|
milliseconds?: number,
|
||||||
|
selector?: string,
|
||||||
} | {
|
} | {
|
||||||
type: "click",
|
type: "click",
|
||||||
selector: string,
|
selector: string,
|
||||||
@ -106,6 +107,8 @@ export type Action = {
|
|||||||
} | {
|
} | {
|
||||||
type: "scroll",
|
type: "scroll",
|
||||||
direction: "up" | "down",
|
direction: "up" | "down",
|
||||||
|
} | {
|
||||||
|
type: "scrape",
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema extends (Action[] | undefined) = undefined> extends CrawlScrapeOptions {
|
export interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema extends (Action[] | undefined) = undefined> extends CrawlScrapeOptions {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user