zod 3.25.12-alpha.0 → 3.25.13

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 (191) hide show
  1. package/package.json +16 -17
  2. package/dist/types/index.d.ts +0 -3
  3. package/dist/types/index.js +0 -3
  4. package/dist/types/v3/ZodError.d.ts +0 -164
  5. package/dist/types/v3/ZodError.js +0 -132
  6. package/dist/types/v3/benchmarks/datetime.d.ts +0 -5
  7. package/dist/types/v3/benchmarks/datetime.js +0 -49
  8. package/dist/types/v3/benchmarks/discriminatedUnion.d.ts +0 -5
  9. package/dist/types/v3/benchmarks/discriminatedUnion.js +0 -74
  10. package/dist/types/v3/benchmarks/index.d.ts +0 -1
  11. package/dist/types/v3/benchmarks/index.js +0 -54
  12. package/dist/types/v3/benchmarks/ipv4.d.ts +0 -5
  13. package/dist/types/v3/benchmarks/ipv4.js +0 -49
  14. package/dist/types/v3/benchmarks/object.d.ts +0 -5
  15. package/dist/types/v3/benchmarks/object.js +0 -65
  16. package/dist/types/v3/benchmarks/primitives.d.ts +0 -5
  17. package/dist/types/v3/benchmarks/primitives.js +0 -154
  18. package/dist/types/v3/benchmarks/realworld.d.ts +0 -5
  19. package/dist/types/v3/benchmarks/realworld.js +0 -51
  20. package/dist/types/v3/benchmarks/string.d.ts +0 -5
  21. package/dist/types/v3/benchmarks/string.js +0 -50
  22. package/dist/types/v3/benchmarks/union.d.ts +0 -5
  23. package/dist/types/v3/benchmarks/union.js +0 -74
  24. package/dist/types/v3/errors.d.ts +0 -5
  25. package/dist/types/v3/errors.js +0 -9
  26. package/dist/types/v3/external.d.ts +0 -6
  27. package/dist/types/v3/external.js +0 -6
  28. package/dist/types/v3/helpers/enumUtil.d.ts +0 -8
  29. package/dist/types/v3/helpers/enumUtil.js +0 -1
  30. package/dist/types/v3/helpers/errorUtil.d.ts +0 -9
  31. package/dist/types/v3/helpers/errorUtil.js +0 -6
  32. package/dist/types/v3/helpers/parseUtil.d.ts +0 -78
  33. package/dist/types/v3/helpers/parseUtil.js +0 -109
  34. package/dist/types/v3/helpers/partialUtil.d.ts +0 -8
  35. package/dist/types/v3/helpers/partialUtil.js +0 -1
  36. package/dist/types/v3/helpers/typeAliases.d.ts +0 -2
  37. package/dist/types/v3/helpers/typeAliases.js +0 -1
  38. package/dist/types/v3/helpers/util.d.ts +0 -85
  39. package/dist/types/v3/helpers/util.js +0 -133
  40. package/dist/types/v3/index.d.ts +0 -4
  41. package/dist/types/v3/index.js +0 -4
  42. package/dist/types/v3/locales/en.d.ts +0 -3
  43. package/dist/types/v3/locales/en.js +0 -107
  44. package/dist/types/v3/standard-schema.d.ts +0 -102
  45. package/dist/types/v3/standard-schema.js +0 -1
  46. package/dist/types/v3/tests/Mocker.d.ts +0 -17
  47. package/dist/types/v3/tests/Mocker.js +0 -53
  48. package/dist/types/v3/tests/language-server.source.d.ts +0 -70
  49. package/dist/types/v3/tests/language-server.source.js +0 -45
  50. package/dist/types/v3/types.d.ts +0 -1031
  51. package/dist/types/v3/types.js +0 -3713
  52. package/dist/types/v4/classic/checks.d.ts +0 -1
  53. package/dist/types/v4/classic/checks.js +0 -1
  54. package/dist/types/v4/classic/coerce.d.ts +0 -17
  55. package/dist/types/v4/classic/coerce.js +0 -17
  56. package/dist/types/v4/classic/compat.d.ts +0 -48
  57. package/dist/types/v4/classic/compat.js +0 -33
  58. package/dist/types/v4/classic/errors.d.ts +0 -30
  59. package/dist/types/v4/classic/errors.js +0 -41
  60. package/dist/types/v4/classic/external.d.ts +0 -8
  61. package/dist/types/v4/classic/external.js +0 -11
  62. package/dist/types/v4/classic/index.d.ts +0 -4
  63. package/dist/types/v4/classic/index.js +0 -4
  64. package/dist/types/v4/classic/iso.d.ts +0 -22
  65. package/dist/types/v4/classic/iso.js +0 -30
  66. package/dist/types/v4/classic/parse.d.ts +0 -23
  67. package/dist/types/v4/classic/parse.js +0 -6
  68. package/dist/types/v4/classic/schemas.d.ts +0 -653
  69. package/dist/types/v4/classic/schemas.js +0 -1012
  70. package/dist/types/v4/core/api.d.ts +0 -273
  71. package/dist/types/v4/core/api.js +0 -867
  72. package/dist/types/v4/core/checks.d.ts +0 -277
  73. package/dist/types/v4/core/checks.js +0 -535
  74. package/dist/types/v4/core/config.d.ts +0 -9
  75. package/dist/types/v4/core/config.js +0 -6
  76. package/dist/types/v4/core/core.d.ts +0 -43
  77. package/dist/types/v4/core/core.js +0 -53
  78. package/dist/types/v4/core/doc.d.ts +0 -14
  79. package/dist/types/v4/core/doc.js +0 -36
  80. package/dist/types/v4/core/errors.d.ts +0 -204
  81. package/dist/types/v4/core/errors.js +0 -206
  82. package/dist/types/v4/core/function.d.ts +0 -35
  83. package/dist/types/v4/core/function.js +0 -70
  84. package/dist/types/v4/core/index.d.ts +0 -15
  85. package/dist/types/v4/core/index.js +0 -15
  86. package/dist/types/v4/core/json-schema.d.ts +0 -100
  87. package/dist/types/v4/core/json-schema.js +0 -1
  88. package/dist/types/v4/core/parse.d.ts +0 -25
  89. package/dist/types/v4/core/parse.js +0 -57
  90. package/dist/types/v4/core/regexes.d.ts +0 -62
  91. package/dist/types/v4/core/regexes.js +0 -93
  92. package/dist/types/v4/core/registries.d.ts +0 -32
  93. package/dist/types/v4/core/registries.js +0 -42
  94. package/dist/types/v4/core/schemas.d.ts +0 -975
  95. package/dist/types/v4/core/schemas.js +0 -1740
  96. package/dist/types/v4/core/standard-schema.d.ts +0 -55
  97. package/dist/types/v4/core/standard-schema.js +0 -1
  98. package/dist/types/v4/core/to-json-schema.d.ts +0 -84
  99. package/dist/types/v4/core/to-json-schema.js +0 -665
  100. package/dist/types/v4/core/util.d.ts +0 -186
  101. package/dist/types/v4/core/util.js +0 -469
  102. package/dist/types/v4/core/versions.d.ts +0 -5
  103. package/dist/types/v4/core/versions.js +0 -5
  104. package/dist/types/v4/core/zsf.d.ts +0 -91
  105. package/dist/types/v4/core/zsf.js +0 -171
  106. package/dist/types/v4/index.d.ts +0 -3
  107. package/dist/types/v4/index.js +0 -3
  108. package/dist/types/v4/locales/ar.d.ts +0 -7
  109. package/dist/types/v4/locales/ar.js +0 -115
  110. package/dist/types/v4/locales/az.d.ts +0 -7
  111. package/dist/types/v4/locales/az.js +0 -114
  112. package/dist/types/v4/locales/be.d.ts +0 -7
  113. package/dist/types/v4/locales/be.js +0 -163
  114. package/dist/types/v4/locales/ca.d.ts +0 -7
  115. package/dist/types/v4/locales/ca.js +0 -117
  116. package/dist/types/v4/locales/cs.d.ts +0 -7
  117. package/dist/types/v4/locales/cs.js +0 -134
  118. package/dist/types/v4/locales/de.d.ts +0 -7
  119. package/dist/types/v4/locales/de.js +0 -115
  120. package/dist/types/v4/locales/en.d.ts +0 -7
  121. package/dist/types/v4/locales/en.js +0 -117
  122. package/dist/types/v4/locales/es.d.ts +0 -7
  123. package/dist/types/v4/locales/es.js +0 -116
  124. package/dist/types/v4/locales/fa.d.ts +0 -7
  125. package/dist/types/v4/locales/fa.js +0 -121
  126. package/dist/types/v4/locales/fi.d.ts +0 -7
  127. package/dist/types/v4/locales/fi.js +0 -121
  128. package/dist/types/v4/locales/fr.d.ts +0 -7
  129. package/dist/types/v4/locales/fr.js +0 -115
  130. package/dist/types/v4/locales/frCA.d.ts +0 -7
  131. package/dist/types/v4/locales/frCA.js +0 -116
  132. package/dist/types/v4/locales/he.d.ts +0 -7
  133. package/dist/types/v4/locales/he.js +0 -116
  134. package/dist/types/v4/locales/hu.d.ts +0 -7
  135. package/dist/types/v4/locales/hu.js +0 -116
  136. package/dist/types/v4/locales/id.d.ts +0 -7
  137. package/dist/types/v4/locales/id.js +0 -115
  138. package/dist/types/v4/locales/index.d.ts +0 -34
  139. package/dist/types/v4/locales/index.js +0 -34
  140. package/dist/types/v4/locales/it.d.ts +0 -7
  141. package/dist/types/v4/locales/it.js +0 -116
  142. package/dist/types/v4/locales/ja.d.ts +0 -7
  143. package/dist/types/v4/locales/ja.js +0 -114
  144. package/dist/types/v4/locales/ko.d.ts +0 -7
  145. package/dist/types/v4/locales/ko.js +0 -120
  146. package/dist/types/v4/locales/mk.d.ts +0 -7
  147. package/dist/types/v4/locales/mk.js +0 -117
  148. package/dist/types/v4/locales/ms.d.ts +0 -7
  149. package/dist/types/v4/locales/ms.js +0 -115
  150. package/dist/types/v4/locales/no.d.ts +0 -7
  151. package/dist/types/v4/locales/no.js +0 -115
  152. package/dist/types/v4/locales/ota.d.ts +0 -7
  153. package/dist/types/v4/locales/ota.js +0 -116
  154. package/dist/types/v4/locales/pl.d.ts +0 -7
  155. package/dist/types/v4/locales/pl.js +0 -116
  156. package/dist/types/v4/locales/pt.d.ts +0 -7
  157. package/dist/types/v4/locales/pt.js +0 -115
  158. package/dist/types/v4/locales/ru.d.ts +0 -7
  159. package/dist/types/v4/locales/ru.js +0 -163
  160. package/dist/types/v4/locales/sl.d.ts +0 -7
  161. package/dist/types/v4/locales/sl.js +0 -116
  162. package/dist/types/v4/locales/ta.d.ts +0 -7
  163. package/dist/types/v4/locales/ta.js +0 -116
  164. package/dist/types/v4/locales/th.d.ts +0 -7
  165. package/dist/types/v4/locales/th.js +0 -116
  166. package/dist/types/v4/locales/tr.d.ts +0 -7
  167. package/dist/types/v4/locales/tr.js +0 -114
  168. package/dist/types/v4/locales/ua.d.ts +0 -7
  169. package/dist/types/v4/locales/ua.js +0 -116
  170. package/dist/types/v4/locales/ur.d.ts +0 -7
  171. package/dist/types/v4/locales/ur.js +0 -116
  172. package/dist/types/v4/locales/vi.d.ts +0 -7
  173. package/dist/types/v4/locales/vi.js +0 -115
  174. package/dist/types/v4/locales/zh-CN.d.ts +0 -7
  175. package/dist/types/v4/locales/zh-CN.js +0 -115
  176. package/dist/types/v4/locales/zh-tw.d.ts +0 -7
  177. package/dist/types/v4/locales/zh-tw.js +0 -116
  178. package/dist/types/v4/mini/checks.d.ts +0 -1
  179. package/dist/types/v4/mini/checks.js +0 -1
  180. package/dist/types/v4/mini/coerce.d.ts +0 -7
  181. package/dist/types/v4/mini/coerce.js +0 -17
  182. package/dist/types/v4/mini/external.d.ts +0 -7
  183. package/dist/types/v4/mini/external.js +0 -7
  184. package/dist/types/v4/mini/index.d.ts +0 -3
  185. package/dist/types/v4/mini/index.js +0 -3
  186. package/dist/types/v4/mini/iso.d.ts +0 -22
  187. package/dist/types/v4/mini/iso.js +0 -30
  188. package/dist/types/v4/mini/parse.d.ts +0 -1
  189. package/dist/types/v4/mini/parse.js +0 -1
  190. package/dist/types/v4/mini/schemas.d.ts +0 -405
  191. package/dist/types/v4/mini/schemas.js +0 -738
@@ -1 +0,0 @@
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";
@@ -1 +0,0 @@
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";
@@ -1,17 +0,0 @@
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>;
@@ -1,17 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import * as schemas from "./schemas.js";
3
- export function string(params) {
4
- return core._coercedString(schemas.ZodString, params);
5
- }
6
- export function number(params) {
7
- return core._coercedNumber(schemas.ZodNumber, params);
8
- }
9
- export function boolean(params) {
10
- return core._coercedBoolean(schemas.ZodBoolean, params);
11
- }
12
- export function bigint(params) {
13
- return core._coercedBigint(schemas.ZodBigInt, params);
14
- }
15
- export function date(params) {
16
- return core._coercedDate(schemas.ZodDate, params);
17
- }
@@ -1,48 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import type { ZodType } from "./schemas.js";
3
- export type {
4
- /** @deprecated Use `z.output<T>` instead. */
5
- output as TypeOf,
6
- /** @deprecated Use `z.output<T>` instead. */
7
- output as Infer,
8
- /** @deprecated Use `z.core.$$ZodFirstPartyTypes` instead */
9
- $ZodTypes as ZodFirstPartySchemaTypes, } from "zod/v4/core";
10
- /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
11
- export declare const ZodIssueCode: {
12
- readonly invalid_type: "invalid_type";
13
- readonly too_big: "too_big";
14
- readonly too_small: "too_small";
15
- readonly invalid_format: "invalid_format";
16
- readonly not_multiple_of: "not_multiple_of";
17
- readonly unrecognized_keys: "unrecognized_keys";
18
- readonly invalid_union: "invalid_union";
19
- readonly invalid_key: "invalid_key";
20
- readonly invalid_element: "invalid_element";
21
- readonly invalid_value: "invalid_value";
22
- readonly custom: "custom";
23
- };
24
- /** A special constant with type `never` */
25
- export declare const NEVER: never;
26
- /** @deprecated Use `z.$ZodFlattenedError` */
27
- export type inferFlattenedErrors<T extends core.$ZodType, U = string> = core.$ZodFlattenedError<core.output<T>, U>;
28
- /** @deprecated Use `z.$ZodFormattedError` */
29
- export type inferFormattedError<T extends core.$ZodType<any, any>, U = string> = core.$ZodFormattedError<core.output<T>, U>;
30
- /** Use `z.$brand` instead */
31
- export type BRAND<T extends string | number | symbol = string | number | symbol> = {
32
- [core.$brand]: {
33
- [k in T]: true;
34
- };
35
- };
36
- export { $brand, config } from "zod/v4/core";
37
- /** @deprecated Use `z.config(params)` instead. */
38
- export declare function setErrorMap(map: core.$ZodErrorMap): void;
39
- /** @deprecated Use `z.config()` instead. */
40
- export declare function getErrorMap(): core.$ZodErrorMap<core.$ZodIssue> | undefined;
41
- export type {
42
- /** @deprecated Use z.ZodType (without generics) instead. */
43
- ZodType as ZodTypeAny,
44
- /** @deprecated Use `z.ZodType` */
45
- ZodType as ZodSchema,
46
- /** @deprecated Use `z.ZodType` */
47
- ZodType as Schema, };
48
- export type ZodRawShape = core.$ZodShape;
@@ -1,33 +0,0 @@
1
- // Zod 3 compat layer
2
- import * as core from "zod/v4/core";
3
- /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
4
- export const ZodIssueCode = {
5
- invalid_type: "invalid_type",
6
- too_big: "too_big",
7
- too_small: "too_small",
8
- invalid_format: "invalid_format",
9
- not_multiple_of: "not_multiple_of",
10
- unrecognized_keys: "unrecognized_keys",
11
- invalid_union: "invalid_union",
12
- invalid_key: "invalid_key",
13
- invalid_element: "invalid_element",
14
- invalid_value: "invalid_value",
15
- custom: "custom",
16
- };
17
- /** @deprecated Not necessary in Zod 4. */
18
- const INVALID = Object.freeze({
19
- status: "aborted",
20
- });
21
- /** A special constant with type `never` */
22
- export const NEVER = INVALID;
23
- export { $brand, config } from "zod/v4/core";
24
- /** @deprecated Use `z.config(params)` instead. */
25
- export function setErrorMap(map) {
26
- core.config({
27
- customError: map,
28
- });
29
- }
30
- /** @deprecated Use `z.config()` instead. */
31
- export function getErrorMap() {
32
- return core.config().customError;
33
- }
@@ -1,30 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import { $ZodError } from "zod/v4/core";
3
- /** @deprecated Use `z.core.$ZodIssue` from `@zod/core` instead, especially if you are building a library on top of Zod. */
4
- export type ZodIssue = core.$ZodIssue;
5
- /** An Error-like class used to store Zod validation issues. */
6
- export interface ZodError<T = unknown> extends $ZodError<T> {
7
- /** @deprecated Use the `z.treeifyError(err)` function instead. */
8
- format(): core.$ZodFormattedError<T>;
9
- format<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFormattedError<T, U>;
10
- /** @deprecated Use the `z.treeifyError(err)` function instead. */
11
- flatten(): core.$ZodFlattenedError<T>;
12
- flatten<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFlattenedError<T, U>;
13
- /** @deprecated Push directly to `.issues` instead. */
14
- addIssue(issue: core.$ZodIssue): void;
15
- /** @deprecated Push directly to `.issues` instead. */
16
- addIssues(issues: core.$ZodIssue[]): void;
17
- /** @deprecated Check `err.issues.length === 0` instead. */
18
- isEmpty: boolean;
19
- }
20
- export declare const ZodError: core.$constructor<ZodError>;
21
- export declare const ZodRealError: core.$constructor<ZodError>;
22
- export type {
23
- /** @deprecated Use `z.core.$ZodFlattenedError` instead. */
24
- $ZodFlattenedError as ZodFlattenedError,
25
- /** @deprecated Use `z.core.$ZodFormattedError` instead. */
26
- $ZodFormattedError as ZodFormattedError,
27
- /** @deprecated Use `z.core.$ZodErrorMap` instead. */
28
- $ZodErrorMap as ZodErrorMap, } from "zod/v4/core";
29
- /** @deprecated Use `z.core.$ZodRawIssue` instead. */
30
- export type IssueData = core.$ZodRawIssue;
@@ -1,41 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import { $ZodError } from "zod/v4/core";
3
- const initializer = (inst, issues) => {
4
- $ZodError.init(inst, issues);
5
- inst.name = "ZodError";
6
- Object.defineProperties(inst, {
7
- format: {
8
- value: (mapper) => core.formatError(inst, mapper),
9
- // enumerable: false,
10
- },
11
- flatten: {
12
- value: (mapper) => core.flattenError(inst, mapper),
13
- // enumerable: false,
14
- },
15
- addIssue: {
16
- value: (issue) => inst.issues.push(issue),
17
- // enumerable: false,
18
- },
19
- addIssues: {
20
- value: (issues) => inst.issues.push(...issues),
21
- // enumerable: false,
22
- },
23
- isEmpty: {
24
- get() {
25
- return inst.issues.length === 0;
26
- },
27
- // enumerable: false,
28
- },
29
- });
30
- // Object.defineProperty(inst, "isEmpty", {
31
- // get() {
32
- // return inst.issues.length === 0;
33
- // },
34
- // });
35
- };
36
- export const ZodError = core.$constructor("ZodError", initializer);
37
- export const ZodRealError = core.$constructor("ZodError", initializer, {
38
- Parent: Error,
39
- });
40
- // /** @deprecated Use `z.core.$ZodErrorMapCtx` instead. */
41
- // export type ErrorMapCtx = core.$ZodErrorMapCtx;
@@ -1,8 +0,0 @@
1
- export * as core from "zod/v4/core";
2
- export * from "./schemas.js";
3
- export * from "./checks.js";
4
- export * from "./errors.js";
5
- export * from "./parse.js";
6
- export * from "./compat.js";
7
- export type { infer, output, input } from "zod/v4/core";
8
- export { globalRegistry, type GlobalMeta, registry, config, function, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, locales, } from "zod/v4/core";
@@ -1,11 +0,0 @@
1
- export * as core from "zod/v4/core";
2
- export * from "./schemas.js";
3
- export * from "./checks.js";
4
- export * from "./errors.js";
5
- export * from "./parse.js";
6
- export * from "./compat.js";
7
- // zod-specified
8
- import { config } from "zod/v4/core";
9
- import en from "zod/v4/locales/en.js";
10
- config(en());
11
- export { globalRegistry, registry, config, function, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, locales, } from "zod/v4/core";
@@ -1,4 +0,0 @@
1
- import * as z from "./external.js";
2
- export { z };
3
- export * from "./external.js";
4
- export default z;
@@ -1,4 +0,0 @@
1
- import * as z from "./external.js";
2
- export { z };
3
- export * from "./external.js";
4
- export default z;
@@ -1,22 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import * as schemas from "./schemas.js";
3
- export interface ZodISODateTime extends schemas.ZodStringFormat {
4
- _zod: core.$ZodISODateTimeInternals;
5
- }
6
- export declare const ZodISODateTime: core.$constructor<ZodISODateTime>;
7
- export declare function datetime(params?: string | core.$ZodISODateTimeParams): ZodISODateTime;
8
- export interface ZodISODate extends schemas.ZodStringFormat {
9
- _zod: core.$ZodISODateInternals;
10
- }
11
- export declare const ZodISODate: core.$constructor<ZodISODate>;
12
- export declare function date(params?: string | core.$ZodISODateParams): ZodISODate;
13
- export interface ZodISOTime extends schemas.ZodStringFormat {
14
- _zod: core.$ZodISOTimeInternals;
15
- }
16
- export declare const ZodISOTime: core.$constructor<ZodISOTime>;
17
- export declare function time(params?: string | core.$ZodISOTimeParams): ZodISOTime;
18
- export interface ZodISODuration extends schemas.ZodStringFormat {
19
- _zod: core.$ZodISODurationInternals;
20
- }
21
- export declare const ZodISODuration: core.$constructor<ZodISODuration>;
22
- export declare function duration(params?: string | core.$ZodISODurationParams): ZodISODuration;
@@ -1,30 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import * as schemas from "./schemas.js";
3
- export const ZodISODateTime = /*@__PURE__*/ core.$constructor("ZodISODateTime", (inst, def) => {
4
- core.$ZodISODateTime.init(inst, def);
5
- schemas.ZodStringFormat.init(inst, def);
6
- });
7
- export function datetime(params) {
8
- return core._isoDateTime(ZodISODateTime, params);
9
- }
10
- export const ZodISODate = /*@__PURE__*/ core.$constructor("ZodISODate", (inst, def) => {
11
- core.$ZodISODate.init(inst, def);
12
- schemas.ZodStringFormat.init(inst, def);
13
- });
14
- export function date(params) {
15
- return core._isoDate(ZodISODate, params);
16
- }
17
- export const ZodISOTime = /*@__PURE__*/ core.$constructor("ZodISOTime", (inst, def) => {
18
- core.$ZodISOTime.init(inst, def);
19
- schemas.ZodStringFormat.init(inst, def);
20
- });
21
- export function time(params) {
22
- return core._isoTime(ZodISOTime, params);
23
- }
24
- export const ZodISODuration = /*@__PURE__*/ core.$constructor("ZodISODuration", (inst, def) => {
25
- core.$ZodISODuration.init(inst, def);
26
- schemas.ZodStringFormat.init(inst, def);
27
- });
28
- export function duration(params) {
29
- return core._isoDuration(ZodISODuration, params);
30
- }
@@ -1,23 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import { type ZodError } from "./errors.js";
3
- export type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
4
- export type ZodSafeParseSuccess<T> = {
5
- success: true;
6
- data: T;
7
- error?: never;
8
- };
9
- export type ZodSafeParseError<T> = {
10
- success: false;
11
- data?: never;
12
- error: ZodError<T>;
13
- };
14
- export declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {
15
- callee?: core.util.AnyFunc;
16
- Err?: core.$ZodErrorClass;
17
- }) => core.output<T>;
18
- export declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {
19
- callee?: core.util.AnyFunc;
20
- Err?: core.$ZodErrorClass;
21
- }) => Promise<core.output<T>>;
22
- export declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;
23
- export declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;
@@ -1,6 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import { ZodRealError } from "./errors.js";
3
- export const parse = /* @__PURE__ */ core._parse(ZodRealError);
4
- export const parseAsync = /* @__PURE__ */ core._parseAsync(ZodRealError);
5
- export const safeParse = /* @__PURE__ */ core._safeParse(ZodRealError);
6
- export const safeParseAsync = /* @__PURE__ */ core._safeParseAsync(ZodRealError);