Skip to content

Commit

Permalink
fix: allow more zod types
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernxst committed Dec 1, 2023
1 parent 7434aa2 commit 698c3f0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ import type { Adapter } from "./adapters/types.ts";
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
type AnySchema<TOutput = any> = BaseSchema<any, TOutput> & { schema: string };

type ZodValidator =
| z.ZodString
| z.ZodNumber
| z.ZodDefault<ZodValidator>
| z.ZodOptional<ZodValidator>;
type ZodValidator = z.ZodType;

type ValibotValidator = AnySchema;

Expand Down

0 comments on commit 698c3f0

Please sign in to comment.