zod 4.0.0-beta.20250410T214751 → 4.0.0-beta.20250410T221232

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.
@@ -270,19 +270,19 @@ export interface ZodNumberFormat extends ZodNumber {
270
270
  _zod: core.$ZodNumberFormatInternals;
271
271
  }
272
272
  export declare const ZodNumberFormat: core.$constructor<ZodNumberFormat>;
273
- interface ZodInt extends ZodNumberFormat {
273
+ export interface ZodInt extends ZodNumberFormat {
274
274
  }
275
275
  export declare function int(params?: string | core.$ZodCheckNumberFormatParams): ZodInt;
276
- interface ZodFloat32 extends ZodNumberFormat {
276
+ export interface ZodFloat32 extends ZodNumberFormat {
277
277
  }
278
278
  export declare function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat32;
279
- interface ZodFloat64 extends ZodNumberFormat {
279
+ export interface ZodFloat64 extends ZodNumberFormat {
280
280
  }
281
281
  export declare function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat64;
282
- interface ZodInt32 extends ZodNumberFormat {
282
+ export interface ZodInt32 extends ZodNumberFormat {
283
283
  }
284
284
  export declare function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodInt32;
285
- interface ZodUInt32 extends ZodNumberFormat {
285
+ export interface ZodUInt32 extends ZodNumberFormat {
286
286
  }
287
287
  export declare function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodUInt32;
288
288
  export interface _ZodBoolean<T = unknown> extends ZodType {
@@ -751,6 +751,6 @@ export type ZodJSONSchema = ZodUnion<[
751
751
  };
752
752
  };
753
753
  export declare function json(params?: core.$ZodCustomParams): ZodJSONSchema;
754
- interface ZodPreprocessParams extends core.$ZodTransformParams, core.$ZodPipeParams {
754
+ export interface ZodPreprocessParams extends core.$ZodTransformParams, core.$ZodPipeParams {
755
755
  }
756
756
  export declare function preprocess<A, U extends core.$ZodType>(fn: (arg: unknown, ctx: RefinementCtx) => A, schema: U, params?: ZodPreprocessParams): ZodPipe<ZodTransform<A, unknown>, U>;
@@ -270,19 +270,19 @@ export interface ZodNumberFormat extends ZodNumber {
270
270
  _zod: core.$ZodNumberFormatInternals;
271
271
  }
272
272
  export declare const ZodNumberFormat: core.$constructor<ZodNumberFormat>;
273
- interface ZodInt extends ZodNumberFormat {
273
+ export interface ZodInt extends ZodNumberFormat {
274
274
  }
275
275
  export declare function int(params?: string | core.$ZodCheckNumberFormatParams): ZodInt;
276
- interface ZodFloat32 extends ZodNumberFormat {
276
+ export interface ZodFloat32 extends ZodNumberFormat {
277
277
  }
278
278
  export declare function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat32;
279
- interface ZodFloat64 extends ZodNumberFormat {
279
+ export interface ZodFloat64 extends ZodNumberFormat {
280
280
  }
281
281
  export declare function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat64;
282
- interface ZodInt32 extends ZodNumberFormat {
282
+ export interface ZodInt32 extends ZodNumberFormat {
283
283
  }
284
284
  export declare function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodInt32;
285
- interface ZodUInt32 extends ZodNumberFormat {
285
+ export interface ZodUInt32 extends ZodNumberFormat {
286
286
  }
287
287
  export declare function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodUInt32;
288
288
  export interface _ZodBoolean<T = unknown> extends ZodType {
@@ -751,6 +751,6 @@ export type ZodJSONSchema = ZodUnion<[
751
751
  };
752
752
  };
753
753
  export declare function json(params?: core.$ZodCustomParams): ZodJSONSchema;
754
- interface ZodPreprocessParams extends core.$ZodTransformParams, core.$ZodPipeParams {
754
+ export interface ZodPreprocessParams extends core.$ZodTransformParams, core.$ZodPipeParams {
755
755
  }
756
756
  export declare function preprocess<A, U extends core.$ZodType>(fn: (arg: unknown, ctx: RefinementCtx) => A, schema: U, params?: ZodPreprocessParams): ZodPipe<ZodTransform<A, unknown>, U>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "4.0.0-beta.20250410T214751",
3
+ "version": "4.0.0-beta.20250410T221232",
4
4
  "type": "module",
5
5
  "author": "Colin McDonnell <zod@colinhacks.com>",
6
6
  "description": "TypeScript-first schema declaration and validation library with static type inference",
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "dependencies": {
73
- "@zod/core": "0.3.0"
73
+ "@zod/core": "0.3.1"
74
74
  },
75
75
  "scripts": {
76
76
  "clean": "rm -rf dist",
package/src/schemas.ts CHANGED
@@ -734,31 +734,31 @@ export const ZodNumberFormat: core.$constructor<ZodNumberFormat> = /*@__PURE__*/
734
734
  );
735
735
 
736
736
  // int
737
- interface ZodInt extends ZodNumberFormat {}
737
+ export interface ZodInt extends ZodNumberFormat {}
738
738
  export function int(params?: string | core.$ZodCheckNumberFormatParams): ZodInt {
739
739
  return core._int(ZodNumberFormat, params);
740
740
  }
741
741
 
742
742
  // float32
743
- interface ZodFloat32 extends ZodNumberFormat {}
743
+ export interface ZodFloat32 extends ZodNumberFormat {}
744
744
  export function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat32 {
745
745
  return core._float32(ZodNumberFormat, params);
746
746
  }
747
747
 
748
748
  // float64
749
- interface ZodFloat64 extends ZodNumberFormat {}
749
+ export interface ZodFloat64 extends ZodNumberFormat {}
750
750
  export function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat64 {
751
751
  return core._float64(ZodNumberFormat, params);
752
752
  }
753
753
 
754
754
  // int32
755
- interface ZodInt32 extends ZodNumberFormat {}
755
+ export interface ZodInt32 extends ZodNumberFormat {}
756
756
  export function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodInt32 {
757
757
  return core._int32(ZodNumberFormat, params);
758
758
  }
759
759
 
760
760
  // uint32
761
- interface ZodUInt32 extends ZodNumberFormat {}
761
+ export interface ZodUInt32 extends ZodNumberFormat {}
762
762
  export function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodUInt32 {
763
763
  return core._uint32(ZodNumberFormat, params);
764
764
  }
@@ -2365,7 +2365,7 @@ export function json(params?: core.$ZodCustomParams): ZodJSONSchema {
2365
2365
  }
2366
2366
 
2367
2367
  // preprocess
2368
- interface ZodPreprocessParams extends core.$ZodTransformParams, core.$ZodPipeParams {}
2368
+ export interface ZodPreprocessParams extends core.$ZodTransformParams, core.$ZodPipeParams {}
2369
2369
 
2370
2370
  // /** @deprecated Use `z.pipe()` and `z.transform()` instead. */
2371
2371
  export function preprocess<A, U extends core.$ZodType>(