Skip to content

Commit

Permalink
fix(zod): fix zod type to enable superRefine
Browse files Browse the repository at this point in the history
  • Loading branch information
JB AUBREE committed Nov 12, 2024
1 parent 102f415 commit 824077a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import type { ComputedRef, Ref } from 'vue'

type AnyObject = Record<string, any>

interface ZodSchema<F> extends AnyObject {
shape: Record<keyof F, unknown>
}
interface ZodShape<F> extends AnyObject { shape: Record<keyof F, unknown> }

type ZodSchema<F> = AnyObject & (ZodShape<F> | { _def: { schema: ZodShape<F> } })
interface YupSchema<F> extends AnyObject {
fields: Record<keyof F, unknown>
}
Expand Down

0 comments on commit 824077a

Please sign in to comment.