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

This commit is contained in:
Andrei Bobkov 2024-09-03 11:12:28 +02:00
parent c3d90d494c
commit 2a8f55e533
No known key found for this signature in database
GPG Key ID: C6A81E5087221625

View File

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