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 {
14
14
InferOutput as Output
15
15
} from 'valibot' ;
16
16
import type { Schema as Schema$2 , InferType } from 'yup' ;
17
- import type { ZodType , ZodTypeAny } from 'zod' ;
17
+ import type { ZodTypeAny , input , output } from 'zod' ;
18
18
import type { SchemaTypes , Infer as VineInfer } from '@vinejs/vine/types' ;
19
19
import type { FromSchema , JSONSchema } from 'json-schema-to-ts' ;
20
20
import type { Struct , Infer as Infer$2 } from 'superstruct' ;
@@ -129,8 +129,8 @@ interface YupResolver extends Resolver {
129
129
130
130
interface ZodResolver extends Resolver {
131
131
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 ;
134
134
}
135
135
136
136
interface VineResolver extends Resolver {
You can’t perform that action at this time.
0 commit comments