@@ -25,6 +25,7 @@ const zSizeLimit = z.custom<SizeLimit>((val) => {
25
25
return false
26
26
} )
27
27
28
+ // @ts -ignore ts check incompatible due to `strictNullChecks: false`
28
29
const zExportMap : zod . ZodType < ExportPathMap > = z . record (
29
30
z . string ( ) ,
30
31
z . object ( {
@@ -37,6 +38,7 @@ const zExportMap: zod.ZodType<ExportPathMap> = z.record(
37
38
} )
38
39
)
39
40
41
+ // @ts -ignore ts check incompatible due to `strictNullChecks: false`
40
42
const zRouteHas : zod . ZodType < RouteHas > = z . union ( [
41
43
z . object ( {
42
44
type : z . enum ( [ 'header' , 'query' , 'cookie' ] ) ,
@@ -50,6 +52,7 @@ const zRouteHas: zod.ZodType<RouteHas> = z.union([
50
52
} ) ,
51
53
] )
52
54
55
+ // @ts -ignore ts check incompatible due to `strictNullChecks: false`
53
56
const zRewrite : zod . ZodType < Rewrite > = z . object ( {
54
57
source : z . string ( ) ,
55
58
destination : z . string ( ) ,
@@ -60,6 +63,7 @@ const zRewrite: zod.ZodType<Rewrite> = z.object({
60
63
internal : z . boolean ( ) . optional ( ) ,
61
64
} )
62
65
66
+ // @ts -ignore ts check incompatible due to `strictNullChecks: false`
63
67
const zRedirect : zod . ZodType < Redirect > = z
64
68
. object ( {
65
69
source : z . string ( ) ,
@@ -83,6 +87,7 @@ const zRedirect: zod.ZodType<Redirect> = z
83
87
] )
84
88
)
85
89
90
+ // @ts -ignore ts check incompatible due to `strictNullChecks: false`
86
91
const zHeader : zod . ZodType < Header > = z . object ( {
87
92
source : z . string ( ) ,
88
93
basePath : z . literal ( false ) . optional ( ) ,
@@ -94,6 +99,7 @@ const zHeader: zod.ZodType<Header> = z.object({
94
99
internal : z . boolean ( ) . optional ( ) ,
95
100
} )
96
101
102
+ // @ts -ignore ts check incompatible due to `strictNullChecks: false`
97
103
const zTurboLoaderItem : zod . ZodType < TurboLoaderItem > = z . union ( [
98
104
z . string ( ) ,
99
105
z . object ( {
@@ -103,6 +109,7 @@ const zTurboLoaderItem: zod.ZodType<TurboLoaderItem> = z.union([
103
109
} ) ,
104
110
] )
105
111
112
+ // @ts -ignore ts check incompatible due to `strictNullChecks: false`
106
113
const zTurboRule : zod . ZodType < TurboRuleConfigItemOrShortcut > = z . union ( [
107
114
z . array ( zTurboLoaderItem ) ,
108
115
z . object ( {
@@ -111,6 +118,7 @@ const zTurboRule: zod.ZodType<TurboRuleConfigItemOrShortcut> = z.union([
111
118
} ) ,
112
119
] )
113
120
121
+ // @ts -ignore ts check incompatible due to `strictNullChecks: false`
114
122
export const configSchema : zod . ZodType < NextConfig > = z . lazy ( ( ) =>
115
123
z . strictObject ( {
116
124
amp : z
0 commit comments