We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 102f415 commit 824077aCopy full SHA for 824077a
src/types.ts
@@ -3,9 +3,9 @@ import type { ComputedRef, Ref } from 'vue'
3
4
type AnyObject = Record<string, any>
5
6
-interface ZodSchema<F> extends AnyObject {
7
- shape: Record<keyof F, unknown>
8
-}
+interface ZodShape<F> extends AnyObject { shape: Record<keyof F, unknown> }
+
+type ZodSchema<F> = AnyObject & (ZodShape<F> | { _def: { schema: ZodShape<F> } })
9
interface YupSchema<F> extends AnyObject {
10
fields: Record<keyof F, unknown>
11
}
0 commit comments