@@ -2106,6 +2106,8 @@ export interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B exte
2106
2106
extends $ZodTypeInternals < core . output < A > & core . output < B > , core . input < A > & core . input < B > > {
2107
2107
def : $ZodIntersectionDef < A , B > ;
2108
2108
isst : never ;
2109
+ optin : A [ "_zod" ] [ "optin" ] | B [ "_zod" ] [ "optin" ] ;
2110
+ optout : A [ "_zod" ] [ "optout" ] | B [ "_zod" ] [ "optout" ] ;
2109
2111
}
2110
2112
2111
2113
export interface $ZodIntersection < A extends SomeType = $ZodType , B extends SomeType = $ZodType > extends $ZodType {
@@ -2418,6 +2420,8 @@ export interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey,
2418
2420
extends $ZodTypeInternals < $InferZodRecordOutput < Key , Value > , $InferZodRecordInput < Key , Value > > {
2419
2421
def : $ZodRecordDef < Key , Value > ;
2420
2422
isst : errors . $ZodIssueInvalidType | errors . $ZodIssueInvalidKey < Record < PropertyKey , unknown > > ;
2423
+ optin ?: "optional" | undefined ;
2424
+ optout ?: "optional" | undefined ;
2421
2425
}
2422
2426
2423
2427
export type $partial = { "~~partial" : true } ;
@@ -2551,6 +2555,8 @@ export interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends
2551
2555
extends $ZodTypeInternals < Map < core . output < Key > , core . output < Value > > , Map < core . input < Key > , core . input < Value > > > {
2552
2556
def : $ZodMapDef < Key , Value > ;
2553
2557
isst : errors . $ZodIssueInvalidType | errors . $ZodIssueInvalidKey | errors . $ZodIssueInvalidElement < unknown > ;
2558
+ optin ?: "optional" | undefined ;
2559
+ optout ?: "optional" | undefined ;
2554
2560
}
2555
2561
2556
2562
export interface $ZodMap < Key extends SomeType = $ZodType , Value extends SomeType = $ZodType > extends $ZodType {
@@ -2650,6 +2656,8 @@ export interface $ZodSetInternals<T extends SomeType = $ZodType>
2650
2656
extends $ZodTypeInternals < Set < core . output < T > > , Set < core . input < T > > > {
2651
2657
def : $ZodSetDef < T > ;
2652
2658
isst : errors . $ZodIssueInvalidType ;
2659
+ optin ?: "optional" | undefined ;
2660
+ optout ?: "optional" | undefined ;
2653
2661
}
2654
2662
2655
2663
export interface $ZodSet < T extends SomeType = $ZodType > extends $ZodType {
@@ -3060,6 +3068,7 @@ export interface $ZodDefaultInternals<T extends SomeType = $ZodType>
3060
3068
extends $ZodTypeInternals < util . NoUndefined < core . output < T > > , core . input < T > | undefined > {
3061
3069
def : $ZodDefaultDef < T > ;
3062
3070
optin : "optional" ;
3071
+ optout ?: "optional" | undefined ; // required
3063
3072
isst : never ;
3064
3073
values : T [ "_zod" ] [ "values" ] ;
3065
3074
}
@@ -3120,6 +3129,7 @@ export interface $ZodPrefaultInternals<T extends SomeType = $ZodType>
3120
3129
extends $ZodTypeInternals < util . NoUndefined < core . output < T > > , core . input < T > | undefined > {
3121
3130
def : $ZodPrefaultDef < T > ;
3122
3131
optin : "optional" ;
3132
+ optout ?: "optional" | undefined ;
3123
3133
isst : never ;
3124
3134
values : T [ "_zod" ] [ "values" ] ;
3125
3135
}
@@ -3162,6 +3172,8 @@ export interface $ZodNonOptionalInternals<T extends SomeType = $ZodType>
3162
3172
def : $ZodNonOptionalDef < T > ;
3163
3173
isst : errors . $ZodIssueInvalidType ;
3164
3174
values : T [ "_zod" ] [ "values" ] ;
3175
+ optin : "optional" | undefined ;
3176
+ optout : "optional" | undefined ;
3165
3177
}
3166
3178
3167
3179
export interface $ZodNonOptional < T extends SomeType = $ZodType > extends $ZodType {
@@ -3255,6 +3267,8 @@ export interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeD
3255
3267
export interface $ZodSuccessInternals < T extends SomeType = $ZodType > extends $ZodTypeInternals < boolean , core . input < T > > {
3256
3268
def : $ZodSuccessDef < T > ;
3257
3269
isst : never ;
3270
+ optin : T [ "_zod" ] [ "optin" ] ;
3271
+ optout : "optional" | undefined ;
3258
3272
}
3259
3273
3260
3274
export interface $ZodSuccess < T extends SomeType = $ZodType > extends $ZodType {
0 commit comments