Skip to content

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

perf(js-sdk): remove whole `z` import and instead use type-only import

Andrei Bobkov2a8f55e53317
diff --git a/apps/js-sdk/firecrawl/src/index.ts b/apps/js-sdk/firecrawl/src/index.ts
index 1d1bb4eea..95b4eebd7 100644
--- a/apps/js-sdk/firecrawl/src/index.ts
+++ b/apps/js-sdk/firecrawl/src/index.ts
@@ -1,5 +1,5 @@
import axios, { AxiosResponse, AxiosRequestHeaders } from "axios";
-import { z } from "zod";
+import type { ZodSchema } from "zod";
import { zodToJsonSchema } from "zod-to-json-schema";
import { WebSocket } from "isows";
import { TypedEventTarget } from "typescript-event-target";
@@ -81,7 +81,7 @@ export interface ScrapeParams {
onlyMainContent?: boolean;
extract?: {
prompt?: string;
- schema?: z.ZodSchema | any;
+ schema?: ZodSchema | any;
systemPrompt?: string;
};
waitFor?: number;