mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-15 19:22:19 +08:00
fixes scroll action
This commit is contained in:
parent
085ac3e71c
commit
eac3714c12
|
@ -88,7 +88,8 @@ export const actionsSchema = z.array(z.union([
|
|||
}),
|
||||
z.object({
|
||||
type: z.literal("scroll"),
|
||||
direction: z.enum(["up", "down"]),
|
||||
direction: z.enum(["up", "down"]).optional().default("down"),
|
||||
selector: z.string().optional(),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal("scrape"),
|
||||
|
|
|
@ -30,7 +30,8 @@ export type Action = {
|
|||
key: string,
|
||||
} | {
|
||||
type: "scroll",
|
||||
direction: "up" | "down"
|
||||
direction?: "up" | "down",
|
||||
selector?: string,
|
||||
} | {
|
||||
type: "scrape",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user