File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import type {
1414 InferOutput as Output
1515} from 'valibot' ;
1616import type { Schema as Schema$2 , InferType } from 'yup' ;
17- import type { ZodType , ZodTypeAny } from 'zod' ;
17+ import type { ZodTypeAny , input , output } from 'zod' ;
1818import type { SchemaTypes , Infer as VineInfer } from '@vinejs/vine/types' ;
1919import type { FromSchema , JSONSchema } from 'json-schema-to-ts' ;
2020import type { Struct , Infer as Infer$2 } from 'superstruct' ;
@@ -129,8 +129,8 @@ interface YupResolver extends Resolver {
129129
130130interface ZodResolver extends Resolver {
131131 base : ZodTypeAny ;
132- input : this[ 'schema' ] extends ZodTypeAny ? this[ 'schema' ] [ '_input' ] : never ;
133- output : this[ 'schema' ] extends ZodTypeAny ? this[ 'schema' ] [ '_output' ] : never ;
132+ input : this[ 'schema' ] extends ZodTypeAny ? input < this[ 'schema' ] > : never ;
133+ output : this[ 'schema' ] extends ZodTypeAny ? output < this[ 'schema' ] > : never ;
134134}
135135
136136interface VineResolver extends Resolver {
You can’t perform that action at this time.
0 commit comments