zod 4.1.0-canary.20250804T184136 → 4.1.0-canary.20250804T184334

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "4.1.0-canary.20250804T184136",
3
+ "version": "4.1.0-canary.20250804T184334",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Colin McDonnell <zod@colinhacks.com>",
@@ -84,8 +84,8 @@ export class $ZodAsyncError extends Error {
84
84
  // export type output<T extends schemas.$ZodType> = T["_zod"]["output"];
85
85
  // export type input<T extends schemas.$ZodType> = T["_zod"]["input"];
86
86
  // export type output<T extends schemas.$ZodType> = T["_zod"]["output"];
87
- export type input<T> = T extends { _zod: { input: any } } ? Required<T["_zod"]>["input"] : unknown;
88
- export type output<T> = T extends { _zod: { output: any } } ? Required<T["_zod"]>["output"] : unknown;
87
+ export type input<T> = T extends { _zod: { input: any } } ? T["_zod"]["input"] : unknown;
88
+ export type output<T> = T extends { _zod: { output: any } } ? T["_zod"]["output"] : unknown;
89
89
 
90
90
  // Mk2
91
91
  // export type input<T> = T extends { _zod: { "~input": any } }
@@ -30,12 +30,12 @@ export type input<T> = T extends {
30
30
  _zod: {
31
31
  input: any;
32
32
  };
33
- } ? Required<T["_zod"]>["input"] : unknown;
33
+ } ? T["_zod"]["input"] : unknown;
34
34
  export type output<T> = T extends {
35
35
  _zod: {
36
36
  output: any;
37
37
  };
38
- } ? Required<T["_zod"]>["output"] : unknown;
38
+ } ? T["_zod"]["output"] : unknown;
39
39
  export type { output as infer };
40
40
  export interface $ZodConfig {
41
41
  /** Custom error map. Overrides `config().localeError`. */
package/v4/core/core.d.ts CHANGED
@@ -30,12 +30,12 @@ export type input<T> = T extends {
30
30
  _zod: {
31
31
  input: any;
32
32
  };
33
- } ? Required<T["_zod"]>["input"] : unknown;
33
+ } ? T["_zod"]["input"] : unknown;
34
34
  export type output<T> = T extends {
35
35
  _zod: {
36
36
  output: any;
37
37
  };
38
- } ? Required<T["_zod"]>["output"] : unknown;
38
+ } ? T["_zod"]["output"] : unknown;
39
39
  export type { output as infer };
40
40
  export interface $ZodConfig {
41
41
  /** Custom error map. Overrides `config().localeError`. */