File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3441,6 +3441,12 @@ export class ZodMap<
3441
3441
ZodMapDef < Key , Value > ,
3442
3442
Map < Key [ "_input" ] , Value [ "_input" ] >
3443
3443
> {
3444
+ get keySchema ( ) {
3445
+ return this . _def . keyType ;
3446
+ }
3447
+ get valueSchema ( ) {
3448
+ return this . _def . valueType ;
3449
+ }
3444
3450
_parse ( input : ParseInput ) : ParseReturnType < this[ "_output" ] > {
3445
3451
const { status, ctx } = this . _processInputParams ( input ) ;
3446
3452
if ( ctx . parsedType !== ZodParsedType . map ) {
Original file line number Diff line number Diff line change @@ -3441,6 +3441,12 @@ export class ZodMap<
3441
3441
ZodMapDef < Key , Value > ,
3442
3442
Map < Key [ "_input" ] , Value [ "_input" ] >
3443
3443
> {
3444
+ get keySchema ( ) {
3445
+ return this . _def . keyType ;
3446
+ }
3447
+ get valueSchema ( ) {
3448
+ return this . _def . valueType ;
3449
+ }
3444
3450
_parse ( input : ParseInput ) : ParseReturnType < this[ "_output" ] > {
3445
3451
const { status, ctx } = this . _processInputParams ( input ) ;
3446
3452
if ( ctx . parsedType !== ZodParsedType . map ) {
You can’t perform that action at this time.
0 commit comments