@rspack/core 1.3.10 → 1.3.12

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.
Files changed (134) hide show
  1. package/compiled/watchpack/index.js +56 -18
  2. package/compiled/watchpack/package.json +1 -1
  3. package/compiled/webpack-sources/index.js +1539 -339
  4. package/compiled/webpack-sources/package.json +1 -1
  5. package/compiled/webpack-sources/types.d.ts +320 -0
  6. package/compiled/zod/dist/types/index.d.ts +3 -0
  7. package/compiled/zod/{lib → dist/types/v3}/ZodError.d.ts +7 -7
  8. package/compiled/zod/{lib → dist/types/v3}/errors.d.ts +2 -2
  9. package/compiled/zod/dist/types/v3/external.d.ts +6 -0
  10. package/compiled/zod/{lib → dist/types/v3}/helpers/errorUtil.d.ts +1 -1
  11. package/compiled/zod/{lib → dist/types/v3}/helpers/parseUtil.d.ts +4 -4
  12. package/compiled/zod/{lib → dist/types/v3}/helpers/partialUtil.d.ts +1 -1
  13. package/compiled/zod/{lib → dist/types/v3}/helpers/util.d.ts +12 -9
  14. package/compiled/zod/dist/types/v3/index.d.ts +4 -0
  15. package/compiled/zod/{lib → dist/types/v3}/locales/en.d.ts +1 -1
  16. package/compiled/zod/{lib/__tests__ → dist/types/v3/tests}/Mocker.d.ts +6 -6
  17. package/compiled/zod/{lib → dist/types/v3}/types.d.ts +118 -149
  18. package/compiled/zod/dist/types/v4/classic/checks.d.ts +1 -0
  19. package/compiled/zod/dist/types/v4/classic/coerce.d.ts +17 -0
  20. package/compiled/zod/dist/types/v4/classic/compat.d.ts +48 -0
  21. package/compiled/zod/dist/types/v4/classic/errors.d.ts +30 -0
  22. package/compiled/zod/dist/types/v4/classic/external.d.ts +8 -0
  23. package/compiled/zod/dist/types/v4/classic/index.d.ts +4 -0
  24. package/compiled/zod/dist/types/v4/classic/iso.d.ts +22 -0
  25. package/compiled/zod/dist/types/v4/classic/parse.d.ts +23 -0
  26. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +657 -0
  27. package/compiled/zod/dist/types/v4/core/api.d.ts +273 -0
  28. package/compiled/zod/dist/types/v4/core/checks.d.ts +277 -0
  29. package/compiled/zod/dist/types/v4/core/config.d.ts +9 -0
  30. package/compiled/zod/dist/types/v4/core/core.d.ts +43 -0
  31. package/compiled/zod/dist/types/v4/core/doc.d.ts +14 -0
  32. package/compiled/zod/dist/types/v4/core/errors.d.ts +205 -0
  33. package/compiled/zod/dist/types/v4/core/function.d.ts +47 -0
  34. package/compiled/zod/dist/types/v4/core/index.d.ts +15 -0
  35. package/compiled/zod/dist/types/v4/core/json-schema.d.ts +100 -0
  36. package/compiled/zod/dist/types/v4/core/parse.d.ts +25 -0
  37. package/compiled/zod/dist/types/v4/core/regexes.d.ts +62 -0
  38. package/compiled/zod/dist/types/v4/core/registries.d.ts +32 -0
  39. package/compiled/zod/dist/types/v4/core/schemas.d.ts +983 -0
  40. package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
  41. package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
  42. package/compiled/zod/dist/types/v4/core/util.d.ts +186 -0
  43. package/compiled/zod/dist/types/v4/core/versions.d.ts +5 -0
  44. package/compiled/zod/dist/types/v4/core/zsf.d.ts +91 -0
  45. package/compiled/zod/dist/types/v4/index.d.ts +3 -0
  46. package/compiled/zod/dist/types/v4/locales/ar.d.ts +7 -0
  47. package/compiled/zod/dist/types/v4/locales/az.d.ts +7 -0
  48. package/compiled/zod/dist/types/v4/locales/be.d.ts +7 -0
  49. package/compiled/zod/dist/types/v4/locales/ca.d.ts +7 -0
  50. package/compiled/zod/dist/types/v4/locales/cs.d.ts +7 -0
  51. package/compiled/zod/dist/types/v4/locales/de.d.ts +7 -0
  52. package/compiled/zod/dist/types/v4/locales/en.d.ts +7 -0
  53. package/compiled/zod/dist/types/v4/locales/es.d.ts +7 -0
  54. package/compiled/zod/dist/types/v4/locales/fa.d.ts +7 -0
  55. package/compiled/zod/dist/types/v4/locales/fi.d.ts +7 -0
  56. package/compiled/zod/dist/types/v4/locales/fr.d.ts +7 -0
  57. package/compiled/zod/dist/types/v4/locales/frCA.d.ts +7 -0
  58. package/compiled/zod/dist/types/v4/locales/he.d.ts +7 -0
  59. package/compiled/zod/dist/types/v4/locales/hu.d.ts +7 -0
  60. package/compiled/zod/dist/types/v4/locales/id.d.ts +7 -0
  61. package/compiled/zod/dist/types/v4/locales/index.d.ts +34 -0
  62. package/compiled/zod/dist/types/v4/locales/it.d.ts +7 -0
  63. package/compiled/zod/dist/types/v4/locales/ja.d.ts +7 -0
  64. package/compiled/zod/dist/types/v4/locales/ko.d.ts +7 -0
  65. package/compiled/zod/dist/types/v4/locales/mk.d.ts +7 -0
  66. package/compiled/zod/dist/types/v4/locales/ms.d.ts +7 -0
  67. package/compiled/zod/dist/types/v4/locales/no.d.ts +7 -0
  68. package/compiled/zod/dist/types/v4/locales/ota.d.ts +7 -0
  69. package/compiled/zod/dist/types/v4/locales/pl.d.ts +7 -0
  70. package/compiled/zod/dist/types/v4/locales/pt.d.ts +7 -0
  71. package/compiled/zod/dist/types/v4/locales/ru.d.ts +7 -0
  72. package/compiled/zod/dist/types/v4/locales/sl.d.ts +7 -0
  73. package/compiled/zod/dist/types/v4/locales/ta.d.ts +7 -0
  74. package/compiled/zod/dist/types/v4/locales/th.d.ts +7 -0
  75. package/compiled/zod/dist/types/v4/locales/tr.d.ts +7 -0
  76. package/compiled/zod/dist/types/v4/locales/ua.d.ts +7 -0
  77. package/compiled/zod/dist/types/v4/locales/ur.d.ts +7 -0
  78. package/compiled/zod/dist/types/v4/locales/vi.d.ts +7 -0
  79. package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +7 -0
  80. package/compiled/zod/dist/types/v4/locales/zh-tw.d.ts +7 -0
  81. package/compiled/zod/dist/types/v4/mini/checks.d.ts +1 -0
  82. package/compiled/zod/dist/types/v4/mini/coerce.d.ts +7 -0
  83. package/compiled/zod/dist/types/v4/mini/external.d.ts +7 -0
  84. package/compiled/zod/dist/types/v4/mini/index.d.ts +3 -0
  85. package/compiled/zod/dist/types/v4/mini/iso.d.ts +22 -0
  86. package/compiled/zod/dist/types/v4/mini/parse.d.ts +1 -0
  87. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +407 -0
  88. package/compiled/zod/index.js +555 -602
  89. package/compiled/zod/license +1 -1
  90. package/compiled/zod/package.json +1 -1
  91. package/compiled/zod/v3/index.d.ts +1 -0
  92. package/compiled/zod/v4/core/index.d.ts +1 -0
  93. package/compiled/zod/v4/index.d.ts +1 -0
  94. package/compiled/zod/v4/locales/en.d.ts +2 -0
  95. package/compiled/zod/v4/locales/index.d.ts +1 -0
  96. package/compiled/zod/v4-mini/index.d.ts +1 -0
  97. package/dist/Compilation.d.ts +7 -7
  98. package/dist/Compiler.d.ts +1 -1
  99. package/dist/Diagnostics.d.ts +7 -0
  100. package/dist/Module.d.ts +9 -0
  101. package/dist/RspackError.d.ts +3 -0
  102. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -3
  103. package/dist/builtin-plugin/CssChunkingPlugin.d.ts +19 -0
  104. package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
  105. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
  106. package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
  107. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +4 -4
  108. package/dist/builtin-plugin/index.d.ts +2 -0
  109. package/dist/config/zod.d.ts +6 -6
  110. package/dist/exports.d.ts +3 -0
  111. package/dist/index.d.ts +0 -1
  112. package/dist/index.js +392 -232
  113. package/dist/node/NodeWatchFileSystem.d.ts +2 -2
  114. package/dist/trace/index.d.ts +9 -3
  115. package/dist/trace/traceHookPlugin.d.ts +5 -0
  116. package/dist/worker.js +1 -1
  117. package/package.json +8 -9
  118. package/compiled/webpack-sources/index.d.ts +0 -130
  119. package/compiled/zod/index.d.ts +0 -2
  120. package/compiled/zod/lib/external.d.ts +0 -6
  121. package/compiled/zod/lib/index.d.ts +0 -4
  122. package/dist/setupEnv.d.ts +0 -1
  123. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/datetime.d.ts +0 -0
  124. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/discriminatedUnion.d.ts +0 -0
  125. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/index.d.ts +0 -0
  126. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/ipv4.d.ts +0 -0
  127. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/object.d.ts +0 -0
  128. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/primitives.d.ts +0 -0
  129. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/realworld.d.ts +0 -0
  130. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/string.d.ts +0 -0
  131. /package/compiled/zod/{lib → dist/types/v3}/benchmarks/union.d.ts +0 -0
  132. /package/compiled/zod/{lib → dist/types/v3}/helpers/enumUtil.d.ts +0 -0
  133. /package/compiled/zod/{lib → dist/types/v3}/helpers/typeAliases.d.ts +0 -0
  134. /package/compiled/zod/{lib → dist/types/v3}/standard-schema.d.ts +0 -0
@@ -1,11 +1,11 @@
1
- import { enumUtil } from "./helpers/enumUtil";
2
- import { errorUtil } from "./helpers/errorUtil";
3
- import { AsyncParseReturnType, INVALID, ParseContext, ParseInput, ParseParams, ParseReturnType, ParseStatus, SyncParseReturnType } from "./helpers/parseUtil";
4
- import { partialUtil } from "./helpers/partialUtil";
5
- import { Primitive } from "./helpers/typeAliases";
6
- import { objectUtil, util } from "./helpers/util";
7
- import type { StandardSchemaV1 } from "./standard-schema";
8
- import { IssueData, StringValidation, ZodCustomIssue, ZodError, ZodErrorMap } from "./ZodError";
1
+ import { type IssueData, type StringValidation, type ZodCustomIssue, ZodError, type ZodErrorMap } from "./ZodError.js";
2
+ import type { enumUtil } from "./helpers/enumUtil.js";
3
+ import { errorUtil } from "./helpers/errorUtil.js";
4
+ import { type AsyncParseReturnType, INVALID, type ParseContext, type ParseInput, type ParseParams, type ParseReturnType, ParseStatus, type SyncParseReturnType } from "./helpers/parseUtil.js";
5
+ import type { partialUtil } from "./helpers/partialUtil.js";
6
+ import type { Primitive } from "./helpers/typeAliases.js";
7
+ import { util, type objectUtil } from "./helpers/util.js";
8
+ import type { StandardSchemaV1 } from "./standard-schema.js";
9
9
  export interface RefinementCtx {
10
10
  addIssue: (arg: IssueData) => void;
11
11
  path: (string | number)[];
@@ -20,19 +20,19 @@ export type output<T extends ZodType<any, any, any>> = T["_output"];
20
20
  export type { TypeOf as infer };
21
21
  export type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
22
22
  export interface ZodTypeDef {
23
- errorMap?: ZodErrorMap;
24
- description?: string;
23
+ errorMap?: ZodErrorMap | undefined;
24
+ description?: string | undefined;
25
25
  }
26
26
  export type RawCreateParams = {
27
- errorMap?: ZodErrorMap;
28
- invalid_type_error?: string;
29
- required_error?: string;
30
- message?: string;
31
- description?: string;
27
+ errorMap?: ZodErrorMap | undefined;
28
+ invalid_type_error?: string | undefined;
29
+ required_error?: string | undefined;
30
+ message?: string | undefined;
31
+ description?: string | undefined;
32
32
  } | undefined;
33
33
  export type ProcessedCreateParams = {
34
- errorMap?: ZodErrorMap;
35
- description?: string;
34
+ errorMap?: ZodErrorMap | undefined;
35
+ description?: string | undefined;
36
36
  };
37
37
  export type SafeParseSuccess<Output> = {
38
38
  success: true;
@@ -61,13 +61,13 @@ export declare abstract class ZodType<Output = any, Def extends ZodTypeDef = Zod
61
61
  };
62
62
  _parseSync(input: ParseInput): SyncParseReturnType<Output>;
63
63
  _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;
64
- parse(data: unknown, params?: Partial<ParseParams>): Output;
65
- safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
64
+ parse(data: unknown, params?: util.InexactPartial<ParseParams>): Output;
65
+ safeParse(data: unknown, params?: util.InexactPartial<ParseParams>): SafeParseReturnType<Input, Output>;
66
66
  "~validate"(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>>;
67
- parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
68
- safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
67
+ parseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<Output>;
68
+ safeParseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
69
69
  /** Alias of safeParseAsync */
70
- spa: (data: unknown, params?: Partial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>>;
70
+ spa: (data: unknown, params?: util.InexactPartial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>>;
71
71
  refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
72
72
  refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
73
73
  refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input>;
@@ -103,99 +103,99 @@ export type IpVersion = "v4" | "v6";
103
103
  export type ZodStringCheck = {
104
104
  kind: "min";
105
105
  value: number;
106
- message?: string;
106
+ message?: string | undefined;
107
107
  } | {
108
108
  kind: "max";
109
109
  value: number;
110
- message?: string;
110
+ message?: string | undefined;
111
111
  } | {
112
112
  kind: "length";
113
113
  value: number;
114
- message?: string;
114
+ message?: string | undefined;
115
115
  } | {
116
116
  kind: "email";
117
- message?: string;
117
+ message?: string | undefined;
118
118
  } | {
119
119
  kind: "url";
120
- message?: string;
120
+ message?: string | undefined;
121
121
  } | {
122
122
  kind: "emoji";
123
- message?: string;
123
+ message?: string | undefined;
124
124
  } | {
125
125
  kind: "uuid";
126
- message?: string;
126
+ message?: string | undefined;
127
127
  } | {
128
128
  kind: "nanoid";
129
- message?: string;
129
+ message?: string | undefined;
130
130
  } | {
131
131
  kind: "cuid";
132
- message?: string;
132
+ message?: string | undefined;
133
133
  } | {
134
134
  kind: "includes";
135
135
  value: string;
136
- position?: number;
137
- message?: string;
136
+ position?: number | undefined;
137
+ message?: string | undefined;
138
138
  } | {
139
139
  kind: "cuid2";
140
- message?: string;
140
+ message?: string | undefined;
141
141
  } | {
142
142
  kind: "ulid";
143
- message?: string;
143
+ message?: string | undefined;
144
144
  } | {
145
145
  kind: "startsWith";
146
146
  value: string;
147
- message?: string;
147
+ message?: string | undefined;
148
148
  } | {
149
149
  kind: "endsWith";
150
150
  value: string;
151
- message?: string;
151
+ message?: string | undefined;
152
152
  } | {
153
153
  kind: "regex";
154
154
  regex: RegExp;
155
- message?: string;
155
+ message?: string | undefined;
156
156
  } | {
157
157
  kind: "trim";
158
- message?: string;
158
+ message?: string | undefined;
159
159
  } | {
160
160
  kind: "toLowerCase";
161
- message?: string;
161
+ message?: string | undefined;
162
162
  } | {
163
163
  kind: "toUpperCase";
164
- message?: string;
164
+ message?: string | undefined;
165
165
  } | {
166
166
  kind: "jwt";
167
167
  alg?: string;
168
- message?: string;
168
+ message?: string | undefined;
169
169
  } | {
170
170
  kind: "datetime";
171
171
  offset: boolean;
172
172
  local: boolean;
173
173
  precision: number | null;
174
- message?: string;
174
+ message?: string | undefined;
175
175
  } | {
176
176
  kind: "date";
177
- message?: string;
177
+ message?: string | undefined;
178
178
  } | {
179
179
  kind: "time";
180
180
  precision: number | null;
181
- message?: string;
181
+ message?: string | undefined;
182
182
  } | {
183
183
  kind: "duration";
184
- message?: string;
184
+ message?: string | undefined;
185
185
  } | {
186
186
  kind: "ip";
187
- version?: IpVersion;
188
- message?: string;
187
+ version?: IpVersion | undefined;
188
+ message?: string | undefined;
189
189
  } | {
190
190
  kind: "cidr";
191
- version?: IpVersion;
192
- message?: string;
191
+ version?: IpVersion | undefined;
192
+ message?: string | undefined;
193
193
  } | {
194
194
  kind: "base64";
195
- message?: string;
195
+ message?: string | undefined;
196
196
  } | {
197
197
  kind: "base64url";
198
- message?: string;
198
+ message?: string | undefined;
199
199
  };
200
200
  export interface ZodStringDef extends ZodTypeDef {
201
201
  checks: ZodStringCheck[];
@@ -223,15 +223,15 @@ export declare class ZodString extends ZodType<string, ZodStringDef, string> {
223
223
  base64url(message?: errorUtil.ErrMessage): ZodString;
224
224
  jwt(options?: {
225
225
  alg?: string;
226
- message?: string;
226
+ message?: string | undefined;
227
227
  }): ZodString;
228
228
  ip(options?: string | {
229
229
  version?: IpVersion;
230
- message?: string;
230
+ message?: string | undefined;
231
231
  }): ZodString;
232
232
  cidr(options?: string | {
233
233
  version?: IpVersion;
234
- message?: string;
234
+ message?: string | undefined;
235
235
  }): ZodString;
236
236
  datetime(options?: string | {
237
237
  message?: string | undefined;
@@ -288,22 +288,22 @@ export type ZodNumberCheck = {
288
288
  kind: "min";
289
289
  value: number;
290
290
  inclusive: boolean;
291
- message?: string;
291
+ message?: string | undefined;
292
292
  } | {
293
293
  kind: "max";
294
294
  value: number;
295
295
  inclusive: boolean;
296
- message?: string;
296
+ message?: string | undefined;
297
297
  } | {
298
298
  kind: "int";
299
- message?: string;
299
+ message?: string | undefined;
300
300
  } | {
301
301
  kind: "multipleOf";
302
302
  value: number;
303
- message?: string;
303
+ message?: string | undefined;
304
304
  } | {
305
305
  kind: "finite";
306
- message?: string;
306
+ message?: string | undefined;
307
307
  };
308
308
  export interface ZodNumberDef extends ZodTypeDef {
309
309
  checks: ZodNumberCheck[];
@@ -341,16 +341,16 @@ export type ZodBigIntCheck = {
341
341
  kind: "min";
342
342
  value: bigint;
343
343
  inclusive: boolean;
344
- message?: string;
344
+ message?: string | undefined;
345
345
  } | {
346
346
  kind: "max";
347
347
  value: bigint;
348
348
  inclusive: boolean;
349
- message?: string;
349
+ message?: string | undefined;
350
350
  } | {
351
351
  kind: "multipleOf";
352
352
  value: bigint;
353
- message?: string;
353
+ message?: string | undefined;
354
354
  };
355
355
  export interface ZodBigIntDef extends ZodTypeDef {
356
356
  checks: ZodBigIntCheck[];
@@ -392,11 +392,11 @@ export declare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean>
392
392
  export type ZodDateCheck = {
393
393
  kind: "min";
394
394
  value: number;
395
- message?: string;
395
+ message?: string | undefined;
396
396
  } | {
397
397
  kind: "max";
398
398
  value: number;
399
- message?: string;
399
+ message?: string | undefined;
400
400
  };
401
401
  export interface ZodDateDef extends ZodTypeDef {
402
402
  checks: ZodDateCheck[];
@@ -471,15 +471,15 @@ export interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeD
471
471
  typeName: ZodFirstPartyTypeKind.ZodArray;
472
472
  exactLength: {
473
473
  value: number;
474
- message?: string;
474
+ message?: string | undefined;
475
475
  } | null;
476
476
  minLength: {
477
477
  value: number;
478
- message?: string;
478
+ message?: string | undefined;
479
479
  } | null;
480
480
  maxLength: {
481
481
  value: number;
482
- message?: string;
482
+ message?: string | undefined;
483
483
  } | null;
484
484
  }
485
485
  export type ArrayCardinality = "many" | "atleastone";
@@ -491,7 +491,7 @@ export declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCar
491
491
  max(maxLength: number, message?: errorUtil.ErrMessage): this;
492
492
  length(len: number, message?: errorUtil.ErrMessage): this;
493
493
  nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
494
- static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodArray<T_1, "many">;
494
+ static create: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
495
495
  }
496
496
  export type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, "atleastone">;
497
497
  export type UnknownKeysParam = "passthrough" | "strict" | "strip";
@@ -584,24 +584,20 @@ export declare class ZodObject<T extends ZodRawShape, UnknownKeys extends Unknow
584
584
  [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];
585
585
  }>, UnknownKeys, Catchall>;
586
586
  keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
587
- static create: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any> extends infer T_2 ? { [k in keyof T_2]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; } : never, baseObjectInputType<T_1> extends infer T_3 ? { [k_1 in keyof T_3]: baseObjectInputType<T_1>[k_1]; } : never>;
588
- static strictCreate: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strict", ZodTypeAny, objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any> extends infer T_2 ? { [k in keyof T_2]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; } : never, baseObjectInputType<T_1> extends infer T_3 ? { [k_1 in keyof T_3]: baseObjectInputType<T_1>[k_1]; } : never>;
589
- static lazycreate: <T_1 extends ZodRawShape>(shape: () => T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any> extends infer T_2 ? { [k in keyof T_2]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; } : never, baseObjectInputType<T_1> extends infer T_3 ? { [k_1 in keyof T_3]: baseObjectInputType<T_1>[k_1]; } : never>;
587
+ static create: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
588
+ static strictCreate: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
589
+ static lazycreate: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, "strip">;
590
590
  }
591
591
  export type AnyZodObject = ZodObject<any, any, any>;
592
592
  export type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
593
- export interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[
594
- ZodTypeAny,
595
- ZodTypeAny,
596
- ...ZodTypeAny[]
597
- ]>> extends ZodTypeDef {
593
+ export interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> extends ZodTypeDef {
598
594
  options: T;
599
595
  typeName: ZodFirstPartyTypeKind.ZodUnion;
600
596
  }
601
597
  export declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]> {
602
598
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
603
599
  get options(): T;
604
- static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T_1, params?: RawCreateParams) => ZodUnion<T_1>;
600
+ static create: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
605
601
  }
606
602
  export type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<{
607
603
  [key in Discriminator]: ZodTypeAny;
@@ -637,7 +633,7 @@ export interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends
637
633
  }
638
634
  export declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<T["_output"] & U["_output"], ZodIntersectionDef<T, U>, T["_input"] & U["_input"]> {
639
635
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
640
- static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(left: T_1, right: U_1, params?: RawCreateParams) => ZodIntersection<T_1, U_1>;
636
+ static create: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema>;
641
637
  }
642
638
  export type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
643
639
  export type AssertArray<T> = T extends any[] ? T : never;
@@ -654,15 +650,12 @@ export interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest
654
650
  rest: Rest;
655
651
  typeName: ZodFirstPartyTypeKind.ZodTuple;
656
652
  }
657
- export type AnyZodTuple = ZodTuple<[
658
- ZodTypeAny,
659
- ...ZodTypeAny[]
660
- ] | [], ZodTypeAny | null>;
661
- export declare class ZodTuple<T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]], Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
653
+ export type AnyZodTuple = ZodTuple<[ZodTypeAny, ...ZodTypeAny[]] | [], ZodTypeAny | null>;
654
+ export declare class ZodTuple<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
662
655
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
663
656
  get items(): T;
664
- rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>;
665
- static create: <T_1 extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(schemas: T_1, params?: RawCreateParams) => ZodTuple<T_1, null>;
657
+ rest<RestSchema extends ZodTypeAny>(rest: RestSchema): ZodTuple<T, RestSchema>;
658
+ static create: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
666
659
  }
667
660
  export interface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
668
661
  valueType: Value;
@@ -670,9 +663,7 @@ export interface ZodRecordDef<Key extends KeySchema = ZodString, Value extends Z
670
663
  typeName: ZodFirstPartyTypeKind.ZodRecord;
671
664
  }
672
665
  export type KeySchema = ZodType<string | number | symbol, any, any>;
673
- export type RecordType<K extends string | number | symbol, V> = [
674
- string
675
- ] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : [BRAND<string | number | symbol>] extends [K] ? Record<K, V> : Partial<Record<K, V>>;
666
+ export type RecordType<K extends string | number | symbol, V> = [string] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : [BRAND<string | number | symbol>] extends [K] ? Record<K, V> : Partial<Record<K, V>>;
676
667
  export declare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<RecordType<Key["_output"], Value["_output"]>, ZodRecordDef<Key, Value>, RecordType<Key["_input"], Value["_input"]>> {
677
668
  get keySchema(): Key;
678
669
  get valueSchema(): Value;
@@ -690,18 +681,18 @@ export declare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends Z
690
681
  get keySchema(): Key;
691
682
  get valueSchema(): Value;
692
683
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
693
- static create: <Key_1 extends ZodTypeAny = ZodTypeAny, Value_1 extends ZodTypeAny = ZodTypeAny>(keyType: Key_1, valueType: Value_1, params?: RawCreateParams) => ZodMap<Key_1, Value_1>;
684
+ static create: <KeySchema extends ZodTypeAny = ZodTypeAny, ValueSchema extends ZodTypeAny = ZodTypeAny>(keyType: KeySchema, valueType: ValueSchema, params?: RawCreateParams) => ZodMap<KeySchema, ValueSchema>;
694
685
  }
695
686
  export interface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
696
687
  valueType: Value;
697
688
  typeName: ZodFirstPartyTypeKind.ZodSet;
698
689
  minSize: {
699
690
  value: number;
700
- message?: string;
691
+ message?: string | undefined;
701
692
  } | null;
702
693
  maxSize: {
703
694
  value: number;
704
- message?: string;
695
+ message?: string | undefined;
705
696
  } | null;
706
697
  }
707
698
  export declare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>> {
@@ -710,7 +701,7 @@ export declare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodTy
710
701
  max(maxSize: number, message?: errorUtil.ErrMessage): this;
711
702
  size(size: number, message?: errorUtil.ErrMessage): this;
712
703
  nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;
713
- static create: <Value_1 extends ZodTypeAny = ZodTypeAny>(valueType: Value_1, params?: RawCreateParams) => ZodSet<Value_1>;
704
+ static create: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema>;
714
705
  }
715
706
  export interface ZodFunctionDef<Args extends ZodTuple<any, any> = ZodTuple<any, any>, Returns extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
716
707
  args: Args;
@@ -740,7 +731,7 @@ export interface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDe
740
731
  export declare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> {
741
732
  get schema(): T;
742
733
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
743
- static create: <T_1 extends ZodTypeAny>(getter: () => T_1, params?: RawCreateParams) => ZodLazy<T_1>;
734
+ static create: <Inner extends ZodTypeAny>(getter: () => Inner, params?: RawCreateParams) => ZodLazy<Inner>;
744
735
  }
745
736
  export interface ZodLiteralDef<T = any> extends ZodTypeDef {
746
737
  value: T;
@@ -749,7 +740,7 @@ export interface ZodLiteralDef<T = any> extends ZodTypeDef {
749
740
  export declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {
750
741
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
751
742
  get value(): T;
752
- static create: <T_1 extends Primitive>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;
743
+ static create: <Value extends Primitive>(value: Value, params?: RawCreateParams) => ZodLiteral<Value>;
753
744
  }
754
745
  export type ArrayKeys = keyof any[];
755
746
  export type Indices<T> = Exclude<keyof T, ArrayKeys>;
@@ -791,7 +782,7 @@ export declare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T
791
782
  #private;
792
783
  _parse(input: ParseInput): ParseReturnType<T[keyof T]>;
793
784
  get enum(): T;
794
- static create: <T_1 extends EnumLike>(values: T_1, params?: RawCreateParams) => ZodNativeEnum<T_1>;
785
+ static create: <Elements extends EnumLike>(values: Elements, params?: RawCreateParams) => ZodNativeEnum<Elements>;
795
786
  }
796
787
  export interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
797
788
  type: T;
@@ -800,7 +791,7 @@ export interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTyp
800
791
  export declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_output"]>, ZodPromiseDef<T>, Promise<T["_input"]>> {
801
792
  unwrap(): T;
802
793
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
803
- static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodPromise<T_1>;
794
+ static create: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
804
795
  }
805
796
  export type Refinement<T> = (arg: T, ctx: RefinementCtx) => any;
806
797
  export type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void>;
@@ -838,7 +829,7 @@ export type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T>;
838
829
  export declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
839
830
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
840
831
  unwrap(): T;
841
- static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;
832
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner>;
842
833
  }
843
834
  export interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
844
835
  innerType: T;
@@ -848,7 +839,7 @@ export type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T>;
848
839
  export declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
849
840
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
850
841
  unwrap(): T;
851
- static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodNullable<T_1>;
842
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner>;
852
843
  }
853
844
  export interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
854
845
  innerType: T;
@@ -858,15 +849,9 @@ export interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTyp
858
849
  export declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined> {
859
850
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
860
851
  removeDefault(): T;
861
- static create: <T_1 extends ZodTypeAny>(type: T_1, params: {
862
- errorMap?: ZodErrorMap | undefined;
863
- invalid_type_error?: string | undefined;
864
- required_error?: string | undefined;
865
- message?: string | undefined;
866
- description?: string | undefined;
867
- } & {
868
- default: T_1["_input"] | (() => util.noUndefined<T_1["_input"]>);
869
- }) => ZodDefault<T_1>;
852
+ static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
853
+ default: Inner["_input"] | (() => util.noUndefined<Inner["_input"]>);
854
+ }) => ZodDefault<Inner>;
870
855
  }
871
856
  export interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
872
857
  innerType: T;
@@ -879,15 +864,9 @@ export interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeD
879
864
  export declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCatchDef<T>, unknown> {
880
865
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
881
866
  removeCatch(): T;
882
- static create: <T_1 extends ZodTypeAny>(type: T_1, params: {
883
- errorMap?: ZodErrorMap | undefined;
884
- invalid_type_error?: string | undefined;
885
- required_error?: string | undefined;
886
- message?: string | undefined;
887
- description?: string | undefined;
888
- } & {
889
- catch: T_1["_output"] | (() => T_1["_output"]);
890
- }) => ZodCatch<T_1>;
867
+ static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
868
+ catch: Inner["_output"] | (() => Inner["_output"]);
869
+ }) => ZodCatch<Inner>;
891
870
  }
892
871
  export interface ZodNaNDef extends ZodTypeDef {
893
872
  typeName: ZodFirstPartyTypeKind.ZodNaN;
@@ -917,7 +896,7 @@ export interface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> exte
917
896
  }
918
897
  export declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<B["_output"], ZodPipelineDef<A, B>, A["_input"]> {
919
898
  _parse(input: ParseInput): ParseReturnType<any>;
920
- static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;
899
+ static create<ASchema extends ZodTypeAny, BSchema extends ZodTypeAny>(a: ASchema, b: BSchema): ZodPipeline<ASchema, BSchema>;
921
900
  }
922
901
  type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
923
902
  readonly [Symbol.toStringTag]: string;
@@ -929,7 +908,7 @@ export interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTy
929
908
  }
930
909
  export declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, MakeReadonly<T["_input"]>> {
931
910
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
932
- static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;
911
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodReadonly<Inner>;
933
912
  unwrap(): T;
934
913
  }
935
914
  type CustomParams = CustomErrorParams & {
@@ -949,7 +928,7 @@ export declare function custom<T>(check?: (data: any) => any, _params?: string |
949
928
  fatal?: boolean): ZodType<T, ZodTypeDef, T>;
950
929
  export { ZodType as Schema, ZodType as ZodSchema };
951
930
  export declare const late: {
952
- object: <T extends ZodRawShape>(shape: () => T, params?: RawCreateParams) => ZodObject<T, "strip">;
931
+ object: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, "strip">;
953
932
  };
954
933
  export declare enum ZodFirstPartyTypeKind {
955
934
  ZodString = "ZodString",
@@ -1017,46 +996,36 @@ declare const anyType: (params?: RawCreateParams) => ZodAny;
1017
996
  declare const unknownType: (params?: RawCreateParams) => ZodUnknown;
1018
997
  declare const neverType: (params?: RawCreateParams) => ZodNever;
1019
998
  declare const voidType: (params?: RawCreateParams) => ZodVoid;
1020
- declare const arrayType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T>;
1021
- declare const objectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, objectOutputType<T, ZodTypeAny, "strip">, objectInputType<T, ZodTypeAny, "strip">>;
1022
- declare const strictObjectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strict">;
1023
- declare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T, params?: RawCreateParams) => ZodUnion<T>;
999
+ declare const arrayType: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
1000
+ declare const objectType: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
1001
+ declare const strictObjectType: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
1002
+ declare const unionType: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
1024
1003
  declare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;
1025
- declare const intersectionType: <T extends ZodTypeAny, U extends ZodTypeAny>(left: T, right: U, params?: RawCreateParams) => ZodIntersection<T, U>;
1026
- declare const tupleType: <T extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(schemas: T, params?: RawCreateParams) => ZodTuple<T, null>;
1004
+ declare const intersectionType: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema>;
1005
+ declare const tupleType: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
1027
1006
  declare const recordType: typeof ZodRecord.create;
1028
- declare const mapType: <Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny>(keyType: Key, valueType: Value, params?: RawCreateParams) => ZodMap<Key, Value>;
1029
- declare const setType: <Value extends ZodTypeAny = ZodTypeAny>(valueType: Value, params?: RawCreateParams) => ZodSet<Value>;
1007
+ declare const mapType: <KeySchema extends ZodTypeAny = ZodTypeAny, ValueSchema extends ZodTypeAny = ZodTypeAny>(keyType: KeySchema, valueType: ValueSchema, params?: RawCreateParams) => ZodMap<KeySchema, ValueSchema>;
1008
+ declare const setType: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema>;
1030
1009
  declare const functionType: typeof ZodFunction.create;
1031
- declare const lazyType: <T extends ZodTypeAny>(getter: () => T, params?: RawCreateParams) => ZodLazy<T>;
1032
- declare const literalType: <T extends Primitive>(value: T, params?: RawCreateParams) => ZodLiteral<T>;
1010
+ declare const lazyType: <Inner extends ZodTypeAny>(getter: () => Inner, params?: RawCreateParams) => ZodLazy<Inner>;
1011
+ declare const literalType: <Value extends Primitive>(value: Value, params?: RawCreateParams) => ZodLiteral<Value>;
1033
1012
  declare const enumType: typeof createZodEnum;
1034
- declare const nativeEnumType: <T extends EnumLike>(values: T, params?: RawCreateParams) => ZodNativeEnum<T>;
1035
- declare const promiseType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodPromise<T>;
1013
+ declare const nativeEnumType: <Elements extends EnumLike>(values: Elements, params?: RawCreateParams) => ZodNativeEnum<Elements>;
1014
+ declare const promiseType: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
1036
1015
  declare const effectsType: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"]>;
1037
- declare const optionalType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodOptional<T>;
1038
- declare const nullableType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodNullable<T>;
1016
+ declare const optionalType: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner>;
1017
+ declare const nullableType: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner>;
1039
1018
  declare const preprocessType: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
1040
1019
  declare const pipelineType: typeof ZodPipeline.create;
1041
1020
  declare const ostring: () => ZodOptional<ZodString>;
1042
1021
  declare const onumber: () => ZodOptional<ZodNumber>;
1043
1022
  declare const oboolean: () => ZodOptional<ZodBoolean>;
1044
1023
  export declare const coerce: {
1045
- string: (params?: RawCreateParams & {
1046
- coerce?: true;
1047
- }) => ZodString;
1048
- number: (params?: RawCreateParams & {
1049
- coerce?: boolean;
1050
- }) => ZodNumber;
1051
- boolean: (params?: RawCreateParams & {
1052
- coerce?: boolean;
1053
- }) => ZodBoolean;
1054
- bigint: (params?: RawCreateParams & {
1055
- coerce?: boolean;
1056
- }) => ZodBigInt;
1057
- date: (params?: RawCreateParams & {
1058
- coerce?: boolean;
1059
- }) => ZodDate;
1024
+ string: (typeof ZodString)["create"];
1025
+ number: (typeof ZodNumber)["create"];
1026
+ boolean: (typeof ZodBoolean)["create"];
1027
+ bigint: (typeof ZodBigInt)["create"];
1028
+ date: (typeof ZodDate)["create"];
1060
1029
  };
1061
1030
  export { anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, dateType as date, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, instanceOfType as instanceof, intersectionType as intersection, lazyType as lazy, literalType as literal, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, recordType as record, setType as set, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, voidType as void, };
1062
1031
  export declare const NEVER: never;
@@ -0,0 +1 @@
1
+ export { _lt as lt, _lte as lte, _gt as gt, _gte as gte, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "zod/v4/core";
@@ -0,0 +1,17 @@
1
+ import * as core from "zod/v4/core";
2
+ import * as schemas from "./schemas.js";
3
+ export interface ZodCoercedString<T = unknown> extends schemas._ZodString<T> {
4
+ }
5
+ export declare function string<T = unknown>(params?: string | core.$ZodStringParams): ZodCoercedString<T>;
6
+ export interface ZodCoercedNumber<T = unknown> extends schemas._ZodNumber<T> {
7
+ }
8
+ export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): ZodCoercedNumber<T>;
9
+ export interface ZodCoercedBoolean<T = unknown> extends schemas._ZodBoolean<T> {
10
+ }
11
+ export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): ZodCoercedBoolean<T>;
12
+ export interface ZodCoercedBigInt<T = unknown> extends schemas._ZodBigInt<T> {
13
+ }
14
+ export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): ZodCoercedBigInt<T>;
15
+ export interface ZodCoercedDate<T = unknown> extends schemas._ZodDate<T> {
16
+ }
17
+ export declare function date<T = unknown>(params?: string | core.$ZodDateParams): ZodCoercedDate<T>;