@@ -15,7 +15,7 @@ describe('zod', () => {
15
15
}
16
16
` ,
17
17
[
18
- 'export function PrimitiveInputSchema(): z.ZodSchema< PrimitiveInput>' ,
18
+ 'export function PrimitiveInputSchema(): z.ZodObject<Properties< PrimitiveInput> >' ,
19
19
'a: z.string()' ,
20
20
'b: z.string()' ,
21
21
'c: z.boolean()' ,
@@ -36,7 +36,7 @@ describe('zod', () => {
36
36
}
37
37
` ,
38
38
[
39
- 'export function PrimitiveInputSchema(): z.ZodSchema< PrimitiveInput>' ,
39
+ 'export function PrimitiveInputSchema(): z.ZodObject<Properties< PrimitiveInput> >' ,
40
40
// alphabet order
41
41
'a: z.string().nullish(),' ,
42
42
'b: z.string().nullish(),' ,
@@ -58,7 +58,7 @@ describe('zod', () => {
58
58
}
59
59
` ,
60
60
[
61
- 'export function ArrayInputSchema(): z.ZodSchema< ArrayInput>' ,
61
+ 'export function ArrayInputSchema(): z.ZodObject<Properties< ArrayInput> >' ,
62
62
'a: z.array(z.string().nullable()).nullish(),' ,
63
63
'b: z.array(z.string()).nullish(),' ,
64
64
'c: z.array(z.string()),' ,
@@ -81,11 +81,11 @@ describe('zod', () => {
81
81
}
82
82
` ,
83
83
[
84
- 'export function AInputSchema(): z.ZodSchema< AInput>' ,
84
+ 'export function AInputSchema(): z.ZodObject<Properties< AInput> >' ,
85
85
'b: z.lazy(() => BInputSchema())' ,
86
- 'export function BInputSchema(): z.ZodSchema< BInput>' ,
86
+ 'export function BInputSchema(): z.ZodObject<Properties< BInput> >' ,
87
87
'c: z.lazy(() => CInputSchema())' ,
88
- 'export function CInputSchema(): z.ZodSchema< CInput>' ,
88
+ 'export function CInputSchema(): z.ZodObject<Properties< CInput> >' ,
89
89
'a: z.lazy(() => AInputSchema())' ,
90
90
] ,
91
91
] ,
@@ -98,7 +98,7 @@ describe('zod', () => {
98
98
}
99
99
` ,
100
100
[
101
- 'export function NestedInputSchema(): z.ZodSchema< NestedInput>' ,
101
+ 'export function NestedInputSchema(): z.ZodObject<Properties< NestedInput> >' ,
102
102
'child: z.lazy(() => NestedInputSchema().nullish()),' ,
103
103
'childrens: z.array(z.lazy(() => NestedInputSchema().nullable())).nullish()' ,
104
104
] ,
@@ -116,7 +116,7 @@ describe('zod', () => {
116
116
` ,
117
117
[
118
118
'export const PageTypeSchema = z.nativeEnum(PageType)' ,
119
- 'export function PageInputSchema(): z.ZodSchema< PageInput>' ,
119
+ 'export function PageInputSchema(): z.ZodObject<Properties< PageInput> >' ,
120
120
'pageType: PageTypeSchema' ,
121
121
] ,
122
122
] ,
@@ -136,7 +136,7 @@ describe('zod', () => {
136
136
scalar URL # unknown scalar, should be any (definedNonNullAnySchema)
137
137
` ,
138
138
[
139
- 'export function HttpInputSchema(): z.ZodSchema< HttpInput>' ,
139
+ 'export function HttpInputSchema(): z.ZodObject<Properties< HttpInput> >' ,
140
140
'export const HttpMethodSchema = z.nativeEnum(HttpMethod)' ,
141
141
'method: HttpMethodSchema' ,
142
142
'url: definedNonNullAnySchema' ,
@@ -236,7 +236,7 @@ describe('zod', () => {
236
236
{ }
237
237
) ;
238
238
const wantContains = [
239
- 'export function PrimitiveInputSchema(): z.ZodSchema< PrimitiveInput>' ,
239
+ 'export function PrimitiveInputSchema(): z.ZodObject<Properties< PrimitiveInput> >' ,
240
240
'a: z.string().min(1),' ,
241
241
'b: z.string().min(1),' ,
242
242
'c: z.boolean(),' ,
@@ -271,7 +271,7 @@ describe('zod', () => {
271
271
{ }
272
272
) ;
273
273
const wantContains = [
274
- 'export function ScalarsInputSchema(): z.ZodSchema< ScalarsInput>' ,
274
+ 'export function ScalarsInputSchema(): z.ZodObject<Properties< ScalarsInput> >' ,
275
275
'date: z.date(),' ,
276
276
'email: z.string().email().nullish(),' ,
277
277
'str: z.string()' ,
0 commit comments