mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 04:29:01 +08:00
perf(js-sdk): remove whole z
import and instead use type-only import
This commit is contained in:
parent
c3d90d494c
commit
2a8f55e533
@ -1,5 +1,5 @@
|
|||||||
import axios, { AxiosResponse, AxiosRequestHeaders } from "axios";
|
import axios, { AxiosResponse, AxiosRequestHeaders } from "axios";
|
||||||
import { z } from "zod";
|
import type { ZodSchema } from "zod";
|
||||||
import { zodToJsonSchema } from "zod-to-json-schema";
|
import { zodToJsonSchema } from "zod-to-json-schema";
|
||||||
import { WebSocket } from "isows";
|
import { WebSocket } from "isows";
|
||||||
import { TypedEventTarget } from "typescript-event-target";
|
import { TypedEventTarget } from "typescript-event-target";
|
||||||
@ -81,7 +81,7 @@ export interface ScrapeParams {
|
|||||||
onlyMainContent?: boolean;
|
onlyMainContent?: boolean;
|
||||||
extract?: {
|
extract?: {
|
||||||
prompt?: string;
|
prompt?: string;
|
||||||
schema?: z.ZodSchema | any;
|
schema?: ZodSchema | any;
|
||||||
systemPrompt?: string;
|
systemPrompt?: string;
|
||||||
};
|
};
|
||||||
waitFor?: number;
|
waitFor?: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user