zod 3.25.49 → 3.25.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -306,10 +306,7 @@ export const ZodMiniArray = /*@__PURE__*/ core.$constructor("ZodMiniArray", (ins
306
306
  export function array(element, params) {
307
307
  return new ZodMiniArray({
308
308
  type: "array",
309
- element,
310
- // get element() {
311
- // return element;
312
- // },
309
+ element: element,
313
310
  ...util.normalizeParams(params),
314
311
  });
315
312
  }
@@ -342,9 +339,6 @@ export function strictObject(shape, params) {
342
339
  util.assignProp(this, "shape", { ...shape });
343
340
  return this.shape;
344
341
  },
345
- // get optional() {
346
- // return util.optionalKeys(shape);
347
- // },
348
342
  catchall: never(),
349
343
  ...util.normalizeParams(params),
350
344
  });
@@ -392,7 +386,7 @@ export const ZodMiniUnion = /*@__PURE__*/ core.$constructor("ZodMiniUnion", (ins
392
386
  export function union(options, params) {
393
387
  return new ZodMiniUnion({
394
388
  type: "union",
395
- options,
389
+ options: options,
396
390
  ...util.normalizeParams(params),
397
391
  });
398
392
  }
@@ -415,8 +409,8 @@ export const ZodMiniIntersection = /*@__PURE__*/ core.$constructor("ZodMiniInter
415
409
  export function intersection(left, right) {
416
410
  return new ZodMiniIntersection({
417
411
  type: "intersection",
418
- left,
419
- right,
412
+ left: left,
413
+ right: right,
420
414
  });
421
415
  }
422
416
  export const ZodMiniTuple = /*@__PURE__*/ core.$constructor("ZodMiniTuple", (inst, def) => {
@@ -429,7 +423,7 @@ export function tuple(items, _paramsOrRest, _params) {
429
423
  const rest = hasRest ? _paramsOrRest : null;
430
424
  return new ZodMiniTuple({
431
425
  type: "tuple",
432
- items,
426
+ items: items,
433
427
  rest,
434
428
  ...util.normalizeParams(params),
435
429
  });
@@ -442,7 +436,7 @@ export function record(keyType, valueType, params) {
442
436
  return new ZodMiniRecord({
443
437
  type: "record",
444
438
  keyType,
445
- valueType,
439
+ valueType: valueType,
446
440
  ...util.normalizeParams(params),
447
441
  });
448
442
  }
@@ -450,7 +444,7 @@ export function partialRecord(keyType, valueType, params) {
450
444
  return new ZodMiniRecord({
451
445
  type: "record",
452
446
  keyType: union([keyType, never()]),
453
- valueType,
447
+ valueType: valueType,
454
448
  ...util.normalizeParams(params),
455
449
  });
456
450
  }
@@ -461,8 +455,8 @@ export const ZodMiniMap = /*@__PURE__*/ core.$constructor("ZodMiniMap", (inst, d
461
455
  export function map(keyType, valueType, params) {
462
456
  return new ZodMiniMap({
463
457
  type: "map",
464
- keyType,
465
- valueType,
458
+ keyType: keyType,
459
+ valueType: valueType,
466
460
  ...util.normalizeParams(params),
467
461
  });
468
462
  }
@@ -473,7 +467,7 @@ export const ZodMiniSet = /*@__PURE__*/ core.$constructor("ZodMiniSet", (inst, d
473
467
  export function set(valueType, params) {
474
468
  return new ZodMiniSet({
475
469
  type: "set",
476
- valueType,
470
+ valueType: valueType,
477
471
  ...util.normalizeParams(params),
478
472
  });
479
473
  }
@@ -539,7 +533,7 @@ export const ZodMiniOptional = /*@__PURE__*/ core.$constructor("ZodMiniOptional"
539
533
  export function optional(innerType) {
540
534
  return new ZodMiniOptional({
541
535
  type: "optional",
542
- innerType,
536
+ innerType: innerType,
543
537
  });
544
538
  }
545
539
  export const ZodMiniNullable = /*@__PURE__*/ core.$constructor("ZodMiniNullable", (inst, def) => {
@@ -549,7 +543,7 @@ export const ZodMiniNullable = /*@__PURE__*/ core.$constructor("ZodMiniNullable"
549
543
  export function nullable(innerType) {
550
544
  return new ZodMiniNullable({
551
545
  type: "nullable",
552
- innerType,
546
+ innerType: innerType,
553
547
  });
554
548
  }
555
549
  // nullish
@@ -563,7 +557,7 @@ export const ZodMiniDefault = /*@__PURE__*/ core.$constructor("ZodMiniDefault",
563
557
  export function _default(innerType, defaultValue) {
564
558
  return new ZodMiniDefault({
565
559
  type: "default",
566
- innerType,
560
+ innerType: innerType,
567
561
  get defaultValue() {
568
562
  return typeof defaultValue === "function" ? defaultValue() : defaultValue;
569
563
  },
@@ -576,7 +570,7 @@ export const ZodMiniPrefault = /*@__PURE__*/ core.$constructor("ZodMiniPrefault"
576
570
  export function prefault(innerType, defaultValue) {
577
571
  return new ZodMiniPrefault({
578
572
  type: "prefault",
579
- innerType,
573
+ innerType: innerType,
580
574
  get defaultValue() {
581
575
  return typeof defaultValue === "function" ? defaultValue() : defaultValue;
582
576
  },
@@ -589,7 +583,7 @@ export const ZodMiniNonOptional = /*@__PURE__*/ core.$constructor("ZodMiniNonOpt
589
583
  export function nonoptional(innerType, params) {
590
584
  return new ZodMiniNonOptional({
591
585
  type: "nonoptional",
592
- innerType,
586
+ innerType: innerType,
593
587
  ...util.normalizeParams(params),
594
588
  });
595
589
  }
@@ -600,7 +594,7 @@ export const ZodMiniSuccess = /*@__PURE__*/ core.$constructor("ZodMiniSuccess",
600
594
  export function success(innerType) {
601
595
  return new ZodMiniSuccess({
602
596
  type: "success",
603
- innerType,
597
+ innerType: innerType,
604
598
  });
605
599
  }
606
600
  export const ZodMiniCatch = /*@__PURE__*/ core.$constructor("ZodMiniCatch", (inst, def) => {
@@ -610,7 +604,7 @@ export const ZodMiniCatch = /*@__PURE__*/ core.$constructor("ZodMiniCatch", (ins
610
604
  function _catch(innerType, catchValue) {
611
605
  return new ZodMiniCatch({
612
606
  type: "catch",
613
- innerType,
607
+ innerType: innerType,
614
608
  catchValue: (typeof catchValue === "function" ? catchValue : () => catchValue),
615
609
  });
616
610
  }
@@ -630,7 +624,7 @@ export function pipe(in_, out) {
630
624
  return new ZodMiniPipe({
631
625
  type: "pipe",
632
626
  in: in_,
633
- out,
627
+ out: out,
634
628
  });
635
629
  }
636
630
  export const ZodMiniReadonly = /*@__PURE__*/ core.$constructor("ZodMiniReadonly", (inst, def) => {
@@ -640,7 +634,7 @@ export const ZodMiniReadonly = /*@__PURE__*/ core.$constructor("ZodMiniReadonly"
640
634
  export function readonly(innerType) {
641
635
  return new ZodMiniReadonly({
642
636
  type: "readonly",
643
- innerType,
637
+ innerType: innerType,
644
638
  });
645
639
  }
646
640
  export const ZodMiniTemplateLiteral = /*@__PURE__*/ core.$constructor("ZodMiniTemplateLiteral", (inst, def) => {
@@ -664,7 +658,7 @@ export const ZodMiniLazy = /*@__PURE__*/ core.$constructor("ZodMiniLazy", (inst,
664
658
  function _lazy(getter) {
665
659
  return new ZodMiniLazy({
666
660
  type: "lazy",
667
- getter,
661
+ getter: getter,
668
662
  });
669
663
  }
670
664
  export { _lazy as lazy };
@@ -675,7 +669,7 @@ export const ZodMiniPromise = /*@__PURE__*/ core.$constructor("ZodMiniPromise",
675
669
  export function promise(innerType) {
676
670
  return new ZodMiniPromise({
677
671
  type: "promise",
678
- innerType,
672
+ innerType: innerType,
679
673
  });
680
674
  }
681
675
  export const ZodMiniCustom = /*@__PURE__*/ core.$constructor("ZodMiniCustom", (inst, def) => {
@@ -1,17 +1,17 @@
1
1
  import * as core from "zod/v4/core";
2
2
  import * as schemas from "./schemas.js";
3
- export interface ZodCoercedString<T = unknown> extends schemas._ZodString<T> {
3
+ export interface ZodCoercedString<T = unknown> extends schemas._ZodString<core.$ZodStringInternals<T>> {
4
4
  }
5
5
  export declare function string<T = unknown>(params?: string | core.$ZodStringParams): ZodCoercedString<T>;
6
- export interface ZodCoercedNumber<T = unknown> extends schemas._ZodNumber<T> {
6
+ export interface ZodCoercedNumber<T = unknown> extends schemas._ZodNumber<core.$ZodNumberInternals<T>> {
7
7
  }
8
8
  export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): ZodCoercedNumber<T>;
9
- export interface ZodCoercedBoolean<T = unknown> extends schemas._ZodBoolean<T> {
9
+ export interface ZodCoercedBoolean<T = unknown> extends schemas._ZodBoolean<core.$ZodBooleanInternals<T>> {
10
10
  }
11
11
  export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): ZodCoercedBoolean<T>;
12
- export interface ZodCoercedBigInt<T = unknown> extends schemas._ZodBigInt<T> {
12
+ export interface ZodCoercedBigInt<T = unknown> extends schemas._ZodBigInt<core.$ZodBigIntInternals<T>> {
13
13
  }
14
14
  export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): ZodCoercedBigInt<T>;
15
- export interface ZodCoercedDate<T = unknown> extends schemas._ZodDate<T> {
15
+ export interface ZodCoercedDate<T = unknown> extends schemas._ZodDate<core.$ZodDateInternals<T>> {
16
16
  }
17
17
  export declare function date<T = unknown>(params?: string | core.$ZodDateParams): ZodCoercedDate<T>;