Update index.ts

This commit is contained in:
Nicolas 2024-10-31 20:03:19 -03:00
parent 446acfccde
commit 80beedb46f

View File

@ -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 {