@rspack/core 1.3.11 → 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.
- package/compiled/watchpack/index.js +56 -18
- package/compiled/watchpack/package.json +1 -1
- package/compiled/webpack-sources/index.js +1539 -339
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +320 -0
- package/compiled/zod/dist/types/index.d.ts +3 -0
- package/compiled/zod/{lib → dist/types/v3}/ZodError.d.ts +7 -7
- package/compiled/zod/{lib → dist/types/v3}/errors.d.ts +2 -2
- package/compiled/zod/dist/types/v3/external.d.ts +6 -0
- package/compiled/zod/{lib → dist/types/v3}/helpers/errorUtil.d.ts +1 -1
- package/compiled/zod/{lib → dist/types/v3}/helpers/parseUtil.d.ts +4 -4
- package/compiled/zod/{lib → dist/types/v3}/helpers/partialUtil.d.ts +1 -1
- package/compiled/zod/{lib → dist/types/v3}/helpers/util.d.ts +12 -9
- package/compiled/zod/dist/types/v3/index.d.ts +4 -0
- package/compiled/zod/{lib → dist/types/v3}/locales/en.d.ts +1 -1
- package/compiled/zod/{lib/__tests__ → dist/types/v3/tests}/Mocker.d.ts +6 -6
- package/compiled/zod/{lib → dist/types/v3}/types.d.ts +118 -149
- package/compiled/zod/dist/types/v4/classic/checks.d.ts +1 -0
- package/compiled/zod/dist/types/v4/classic/coerce.d.ts +17 -0
- package/compiled/zod/dist/types/v4/classic/compat.d.ts +48 -0
- package/compiled/zod/dist/types/v4/classic/errors.d.ts +30 -0
- package/compiled/zod/dist/types/v4/classic/external.d.ts +8 -0
- package/compiled/zod/dist/types/v4/classic/index.d.ts +4 -0
- package/compiled/zod/dist/types/v4/classic/iso.d.ts +22 -0
- package/compiled/zod/dist/types/v4/classic/parse.d.ts +23 -0
- package/compiled/zod/dist/types/v4/classic/schemas.d.ts +657 -0
- package/compiled/zod/dist/types/v4/core/api.d.ts +273 -0
- package/compiled/zod/dist/types/v4/core/checks.d.ts +277 -0
- package/compiled/zod/dist/types/v4/core/config.d.ts +9 -0
- package/compiled/zod/dist/types/v4/core/core.d.ts +43 -0
- package/compiled/zod/dist/types/v4/core/doc.d.ts +14 -0
- package/compiled/zod/dist/types/v4/core/errors.d.ts +205 -0
- package/compiled/zod/dist/types/v4/core/function.d.ts +47 -0
- package/compiled/zod/dist/types/v4/core/index.d.ts +15 -0
- package/compiled/zod/dist/types/v4/core/json-schema.d.ts +100 -0
- package/compiled/zod/dist/types/v4/core/parse.d.ts +25 -0
- package/compiled/zod/dist/types/v4/core/regexes.d.ts +62 -0
- package/compiled/zod/dist/types/v4/core/registries.d.ts +32 -0
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +983 -0
- package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
- package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
- package/compiled/zod/dist/types/v4/core/util.d.ts +186 -0
- package/compiled/zod/dist/types/v4/core/versions.d.ts +5 -0
- package/compiled/zod/dist/types/v4/core/zsf.d.ts +91 -0
- package/compiled/zod/dist/types/v4/index.d.ts +3 -0
- package/compiled/zod/dist/types/v4/locales/ar.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/az.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/be.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ca.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/cs.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/de.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/en.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/es.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fa.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fi.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fr.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/frCA.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/he.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/hu.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/id.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/index.d.ts +34 -0
- package/compiled/zod/dist/types/v4/locales/it.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ja.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ko.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/mk.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ms.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/no.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ota.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/pl.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/pt.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ru.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/sl.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ta.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/th.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/tr.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ua.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ur.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/vi.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/zh-tw.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/checks.d.ts +1 -0
- package/compiled/zod/dist/types/v4/mini/coerce.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/external.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/index.d.ts +3 -0
- package/compiled/zod/dist/types/v4/mini/iso.d.ts +22 -0
- package/compiled/zod/dist/types/v4/mini/parse.d.ts +1 -0
- package/compiled/zod/dist/types/v4/mini/schemas.d.ts +407 -0
- package/compiled/zod/index.js +555 -602
- package/compiled/zod/license +1 -1
- package/compiled/zod/package.json +1 -1
- package/compiled/zod/v3/index.d.ts +1 -0
- package/compiled/zod/v4/core/index.d.ts +1 -0
- package/compiled/zod/v4/index.d.ts +1 -0
- package/compiled/zod/v4/locales/en.d.ts +2 -0
- package/compiled/zod/v4/locales/index.d.ts +1 -0
- package/compiled/zod/v4-mini/index.d.ts +1 -0
- package/dist/Compilation.d.ts +2 -2
- package/dist/Compiler.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -3
- package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/exports.d.ts +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +171 -210
- package/dist/node/NodeWatchFileSystem.d.ts +2 -2
- package/dist/trace/index.d.ts +5 -0
- package/package.json +7 -8
- package/compiled/webpack-sources/index.d.ts +0 -130
- package/compiled/zod/index.d.ts +0 -2
- package/compiled/zod/lib/external.d.ts +0 -6
- package/compiled/zod/lib/index.d.ts +0 -4
- package/dist/setupEnv.d.ts +0 -1
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/datetime.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/discriminatedUnion.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/index.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/ipv4.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/object.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/primitives.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/realworld.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/string.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/union.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/helpers/enumUtil.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/helpers/typeAliases.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/standard-schema.d.ts +0 -0
@@ -0,0 +1,983 @@
|
|
1
|
+
import * as checks from "./checks.js";
|
2
|
+
import * as core from "./core.js";
|
3
|
+
import type * as errors from "./errors.js";
|
4
|
+
import type { StandardSchemaV1 } from "./standard-schema.js";
|
5
|
+
import * as util from "./util.js";
|
6
|
+
import { version } from "./versions.js";
|
7
|
+
export interface ParseContext<T extends errors.$ZodIssueBase = never> {
|
8
|
+
/** Customize error messages. */
|
9
|
+
readonly error?: errors.$ZodErrorMap<T>;
|
10
|
+
/** Include the `input` field in issue objects. Default `false`. */
|
11
|
+
readonly reportInput?: boolean;
|
12
|
+
/** Skip eval-based fast path. Default `false`. */
|
13
|
+
readonly jitless?: boolean;
|
14
|
+
}
|
15
|
+
/** @internal */
|
16
|
+
export interface ParseContextInternal<T extends errors.$ZodIssueBase = never> extends ParseContext<T> {
|
17
|
+
readonly async?: boolean | undefined;
|
18
|
+
}
|
19
|
+
export interface ParsePayload<T = unknown> {
|
20
|
+
value: T;
|
21
|
+
issues: errors.$ZodRawIssue[];
|
22
|
+
}
|
23
|
+
export type CheckFn<T> = (input: ParsePayload<T>) => util.MaybeAsync<void>;
|
24
|
+
export interface $ZodTypeDef {
|
25
|
+
type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "interface" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "custom";
|
26
|
+
error?: errors.$ZodErrorMap<never> | undefined;
|
27
|
+
checks?: checks.$ZodCheck<never>[];
|
28
|
+
}
|
29
|
+
/** @internal */
|
30
|
+
export interface $ZodTypeInternals<out O = unknown, out I = unknown> {
|
31
|
+
/** The `@zod/core` version of this schema */
|
32
|
+
version: typeof version;
|
33
|
+
/** Schema definition. */
|
34
|
+
def: $ZodTypeDef;
|
35
|
+
/** @internal Randomly generated ID for this schema. */
|
36
|
+
id: string;
|
37
|
+
/** @internal The inferred output type */
|
38
|
+
output: O;
|
39
|
+
/** @internal The inferred input type */
|
40
|
+
input: I;
|
41
|
+
/** @internal List of deferred initializers. */
|
42
|
+
deferred: util.AnyFunc[] | undefined;
|
43
|
+
/** @internal Parses input and runs all checks (refinements). */
|
44
|
+
run(payload: ParsePayload<any>, ctx: ParseContextInternal): util.MaybeAsync<ParsePayload>;
|
45
|
+
/** @internal Parses input, doesn't run checks. */
|
46
|
+
parse(payload: ParsePayload<any>, ctx: ParseContextInternal): util.MaybeAsync<ParsePayload>;
|
47
|
+
/** @internal Stores identifiers for the set of traits implemented by this schema. */
|
48
|
+
traits: Set<string>;
|
49
|
+
/** @internal Indicates that a schema output type should be considered optional inside objects.
|
50
|
+
* @default Required
|
51
|
+
*/
|
52
|
+
optin?: "optional" | undefined;
|
53
|
+
optout?: "optional" | undefined;
|
54
|
+
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
55
|
+
disc: util.DiscriminatorMap | undefined;
|
56
|
+
/** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
|
57
|
+
*
|
58
|
+
* Defined on: enum, const, literal, null, undefined
|
59
|
+
* Passthrough: optional, nullable, branded, default, catch, pipe
|
60
|
+
* Todo: unions?
|
61
|
+
*/
|
62
|
+
values: util.PrimitiveSet | undefined;
|
63
|
+
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
64
|
+
pattern: RegExp | undefined;
|
65
|
+
/** @internal The constructor function of this schema. */
|
66
|
+
constr: new (def: any) => $ZodType;
|
67
|
+
/** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
|
68
|
+
bag: Record<string, unknown>;
|
69
|
+
/** @internal The set of issues this schema might throw during type checking. */
|
70
|
+
isst: errors.$ZodIssueBase;
|
71
|
+
/** An optional method used to override `toJSONSchema` logic. */
|
72
|
+
toJSONSchema?: () => object;
|
73
|
+
/** @internal The parent of this schema. Only set during certain clone operations. */
|
74
|
+
parent?: $ZodType | undefined;
|
75
|
+
}
|
76
|
+
export interface $ZodType<O = unknown, I = unknown> {
|
77
|
+
_zod: $ZodTypeInternals<O, I>;
|
78
|
+
"~standard": StandardSchemaV1.Props<core.input<this>, core.output<this>>;
|
79
|
+
}
|
80
|
+
export declare const $ZodType: core.$constructor<$ZodType>;
|
81
|
+
export { clone } from "./util.js";
|
82
|
+
export interface $ZodStringDef extends $ZodTypeDef {
|
83
|
+
type: "string";
|
84
|
+
coerce?: boolean;
|
85
|
+
checks?: checks.$ZodCheck<string>[];
|
86
|
+
}
|
87
|
+
export interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
|
88
|
+
def: $ZodStringDef;
|
89
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
90
|
+
pattern: RegExp;
|
91
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
92
|
+
isst: errors.$ZodIssueInvalidType;
|
93
|
+
bag: util.LoosePartial<{
|
94
|
+
minimum: number;
|
95
|
+
maximum: number;
|
96
|
+
pattern: RegExp;
|
97
|
+
format: string;
|
98
|
+
}>;
|
99
|
+
}
|
100
|
+
export interface $ZodString<Input = unknown> extends $ZodType {
|
101
|
+
_zod: $ZodStringInternals<Input>;
|
102
|
+
}
|
103
|
+
export declare const $ZodString: core.$constructor<$ZodString>;
|
104
|
+
export interface $ZodStringFormatDef<Format extends checks.$ZodStringFormats = checks.$ZodStringFormats> extends $ZodStringDef, checks.$ZodCheckStringFormatDef<Format> {
|
105
|
+
}
|
106
|
+
export interface $ZodStringFormatInternals<Format extends checks.$ZodStringFormats = checks.$ZodStringFormats> extends $ZodStringInternals<string>, checks.$ZodCheckStringFormatInternals {
|
107
|
+
def: $ZodStringFormatDef<Format>;
|
108
|
+
}
|
109
|
+
export interface $ZodStringFormat<Format extends checks.$ZodStringFormats = checks.$ZodStringFormats> extends $ZodType {
|
110
|
+
_zod: $ZodStringFormatInternals<Format>;
|
111
|
+
}
|
112
|
+
export declare const $ZodStringFormat: core.$constructor<$ZodStringFormat>;
|
113
|
+
export interface $ZodGUIDDef extends $ZodStringFormatDef<"guid"> {
|
114
|
+
}
|
115
|
+
export interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {
|
116
|
+
}
|
117
|
+
export interface $ZodGUID extends $ZodType {
|
118
|
+
_zod: $ZodGUIDInternals;
|
119
|
+
}
|
120
|
+
export declare const $ZodGUID: core.$constructor<$ZodGUID>;
|
121
|
+
export interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
|
122
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
|
123
|
+
}
|
124
|
+
export interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
|
125
|
+
def: $ZodUUIDDef;
|
126
|
+
}
|
127
|
+
export interface $ZodUUID extends $ZodType {
|
128
|
+
_zod: $ZodUUIDInternals;
|
129
|
+
}
|
130
|
+
export declare const $ZodUUID: core.$constructor<$ZodUUID>;
|
131
|
+
export interface $ZodEmailDef extends $ZodStringFormatDef<"email"> {
|
132
|
+
}
|
133
|
+
export interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {
|
134
|
+
}
|
135
|
+
export interface $ZodEmail extends $ZodType {
|
136
|
+
_zod: $ZodEmailInternals;
|
137
|
+
}
|
138
|
+
export declare const $ZodEmail: core.$constructor<$ZodEmail>;
|
139
|
+
export interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
140
|
+
hostname?: RegExp | undefined;
|
141
|
+
protocol?: RegExp | undefined;
|
142
|
+
}
|
143
|
+
export interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
144
|
+
def: $ZodURLDef;
|
145
|
+
}
|
146
|
+
export interface $ZodURL extends $ZodType {
|
147
|
+
_zod: $ZodURLInternals;
|
148
|
+
}
|
149
|
+
export declare const $ZodURL: core.$constructor<$ZodURL>;
|
150
|
+
export interface $ZodEmojiDef extends $ZodStringFormatDef<"emoji"> {
|
151
|
+
}
|
152
|
+
export interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {
|
153
|
+
}
|
154
|
+
export interface $ZodEmoji extends $ZodType {
|
155
|
+
_zod: $ZodEmojiInternals;
|
156
|
+
}
|
157
|
+
export declare const $ZodEmoji: core.$constructor<$ZodEmoji>;
|
158
|
+
export interface $ZodNanoIDDef extends $ZodStringFormatDef<"nanoid"> {
|
159
|
+
}
|
160
|
+
export interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {
|
161
|
+
}
|
162
|
+
export interface $ZodNanoID extends $ZodType {
|
163
|
+
_zod: $ZodNanoIDInternals;
|
164
|
+
}
|
165
|
+
export declare const $ZodNanoID: core.$constructor<$ZodNanoID>;
|
166
|
+
export interface $ZodCUIDDef extends $ZodStringFormatDef<"cuid"> {
|
167
|
+
}
|
168
|
+
export interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {
|
169
|
+
}
|
170
|
+
export interface $ZodCUID extends $ZodType {
|
171
|
+
_zod: $ZodCUIDInternals;
|
172
|
+
}
|
173
|
+
export declare const $ZodCUID: core.$constructor<$ZodCUID>;
|
174
|
+
export interface $ZodCUID2Def extends $ZodStringFormatDef<"cuid2"> {
|
175
|
+
}
|
176
|
+
export interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {
|
177
|
+
}
|
178
|
+
export interface $ZodCUID2 extends $ZodType {
|
179
|
+
_zod: $ZodCUID2Internals;
|
180
|
+
}
|
181
|
+
export declare const $ZodCUID2: core.$constructor<$ZodCUID2>;
|
182
|
+
export interface $ZodULIDDef extends $ZodStringFormatDef<"ulid"> {
|
183
|
+
}
|
184
|
+
export interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {
|
185
|
+
}
|
186
|
+
export interface $ZodULID extends $ZodType {
|
187
|
+
_zod: $ZodULIDInternals;
|
188
|
+
}
|
189
|
+
export declare const $ZodULID: core.$constructor<$ZodULID>;
|
190
|
+
export interface $ZodXIDDef extends $ZodStringFormatDef<"xid"> {
|
191
|
+
}
|
192
|
+
export interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {
|
193
|
+
}
|
194
|
+
export interface $ZodXID extends $ZodType {
|
195
|
+
_zod: $ZodXIDInternals;
|
196
|
+
}
|
197
|
+
export declare const $ZodXID: core.$constructor<$ZodXID>;
|
198
|
+
export interface $ZodKSUIDDef extends $ZodStringFormatDef<"ksuid"> {
|
199
|
+
}
|
200
|
+
export interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {
|
201
|
+
}
|
202
|
+
export interface $ZodKSUID extends $ZodType {
|
203
|
+
_zod: $ZodKSUIDInternals;
|
204
|
+
}
|
205
|
+
export declare const $ZodKSUID: core.$constructor<$ZodKSUID>;
|
206
|
+
export interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
|
207
|
+
precision: number | null;
|
208
|
+
offset: boolean;
|
209
|
+
local: boolean;
|
210
|
+
}
|
211
|
+
export interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
|
212
|
+
def: $ZodISODateTimeDef;
|
213
|
+
}
|
214
|
+
export interface $ZodISODateTime extends $ZodType {
|
215
|
+
_zod: $ZodISODateTimeInternals;
|
216
|
+
}
|
217
|
+
export declare const $ZodISODateTime: core.$constructor<$ZodISODateTime>;
|
218
|
+
export interface $ZodISODateDef extends $ZodStringFormatDef<"date"> {
|
219
|
+
}
|
220
|
+
export interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {
|
221
|
+
}
|
222
|
+
export interface $ZodISODate extends $ZodType {
|
223
|
+
_zod: $ZodISODateInternals;
|
224
|
+
}
|
225
|
+
export declare const $ZodISODate: core.$constructor<$ZodISODate>;
|
226
|
+
export interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
|
227
|
+
precision?: number | null;
|
228
|
+
}
|
229
|
+
export interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
|
230
|
+
def: $ZodISOTimeDef;
|
231
|
+
}
|
232
|
+
export interface $ZodISOTime extends $ZodType {
|
233
|
+
_zod: $ZodISOTimeInternals;
|
234
|
+
}
|
235
|
+
export declare const $ZodISOTime: core.$constructor<$ZodISOTime>;
|
236
|
+
export interface $ZodISODurationDef extends $ZodStringFormatDef<"duration"> {
|
237
|
+
}
|
238
|
+
export interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {
|
239
|
+
}
|
240
|
+
export interface $ZodISODuration extends $ZodType {
|
241
|
+
_zod: $ZodISODurationInternals;
|
242
|
+
}
|
243
|
+
export declare const $ZodISODuration: core.$constructor<$ZodISODuration>;
|
244
|
+
export interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
|
245
|
+
version?: "v4";
|
246
|
+
}
|
247
|
+
export interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
|
248
|
+
def: $ZodIPv4Def;
|
249
|
+
}
|
250
|
+
export interface $ZodIPv4 extends $ZodType {
|
251
|
+
_zod: $ZodIPv4Internals;
|
252
|
+
}
|
253
|
+
export declare const $ZodIPv4: core.$constructor<$ZodIPv4>;
|
254
|
+
export interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
|
255
|
+
version?: "v6";
|
256
|
+
}
|
257
|
+
export interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
|
258
|
+
def: $ZodIPv6Def;
|
259
|
+
}
|
260
|
+
export interface $ZodIPv6 extends $ZodType {
|
261
|
+
_zod: $ZodIPv6Internals;
|
262
|
+
}
|
263
|
+
export declare const $ZodIPv6: core.$constructor<$ZodIPv6>;
|
264
|
+
export interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
|
265
|
+
version?: "v4";
|
266
|
+
}
|
267
|
+
export interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
|
268
|
+
def: $ZodCIDRv4Def;
|
269
|
+
}
|
270
|
+
export interface $ZodCIDRv4 extends $ZodType {
|
271
|
+
_zod: $ZodCIDRv4Internals;
|
272
|
+
}
|
273
|
+
export declare const $ZodCIDRv4: core.$constructor<$ZodCIDRv4>;
|
274
|
+
export interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
|
275
|
+
version?: "v6";
|
276
|
+
}
|
277
|
+
export interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
|
278
|
+
def: $ZodCIDRv6Def;
|
279
|
+
}
|
280
|
+
export interface $ZodCIDRv6 extends $ZodType {
|
281
|
+
_zod: $ZodCIDRv6Internals;
|
282
|
+
}
|
283
|
+
export declare const $ZodCIDRv6: core.$constructor<$ZodCIDRv6>;
|
284
|
+
export declare function isValidBase64(data: string): boolean;
|
285
|
+
export interface $ZodBase64Def extends $ZodStringFormatDef<"base64"> {
|
286
|
+
}
|
287
|
+
export interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {
|
288
|
+
}
|
289
|
+
export interface $ZodBase64 extends $ZodType {
|
290
|
+
_zod: $ZodBase64Internals;
|
291
|
+
}
|
292
|
+
export declare const $ZodBase64: core.$constructor<$ZodBase64>;
|
293
|
+
export declare function isValidBase64URL(data: string): boolean;
|
294
|
+
export interface $ZodBase64URLDef extends $ZodStringFormatDef<"base64url"> {
|
295
|
+
}
|
296
|
+
export interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {
|
297
|
+
}
|
298
|
+
export interface $ZodBase64URL extends $ZodType {
|
299
|
+
_zod: $ZodBase64URLInternals;
|
300
|
+
}
|
301
|
+
export declare const $ZodBase64URL: core.$constructor<$ZodBase64URL>;
|
302
|
+
export interface $ZodE164Def extends $ZodStringFormatDef<"e164"> {
|
303
|
+
}
|
304
|
+
export interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {
|
305
|
+
}
|
306
|
+
export interface $ZodE164 extends $ZodType {
|
307
|
+
_zod: $ZodE164Internals;
|
308
|
+
}
|
309
|
+
export declare const $ZodE164: core.$constructor<$ZodE164>;
|
310
|
+
export declare function isValidJWT(token: string, algorithm?: util.JWTAlgorithm | null): boolean;
|
311
|
+
export interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
|
312
|
+
alg?: util.JWTAlgorithm | undefined;
|
313
|
+
}
|
314
|
+
export interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
|
315
|
+
def: $ZodJWTDef;
|
316
|
+
}
|
317
|
+
export interface $ZodJWT extends $ZodType {
|
318
|
+
_zod: $ZodJWTInternals;
|
319
|
+
}
|
320
|
+
export declare const $ZodJWT: core.$constructor<$ZodJWT>;
|
321
|
+
export interface $ZodNumberDef extends $ZodTypeDef {
|
322
|
+
type: "number";
|
323
|
+
coerce?: boolean;
|
324
|
+
}
|
325
|
+
export interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
|
326
|
+
def: $ZodNumberDef;
|
327
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
328
|
+
pattern: RegExp;
|
329
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
330
|
+
isst: errors.$ZodIssueInvalidType;
|
331
|
+
bag: util.LoosePartial<{
|
332
|
+
minimum: number;
|
333
|
+
maximum: number;
|
334
|
+
exclusiveMinimum: number;
|
335
|
+
exclusiveMaximum: number;
|
336
|
+
format: string;
|
337
|
+
pattern: RegExp;
|
338
|
+
}>;
|
339
|
+
}
|
340
|
+
export interface $ZodNumber<Input = unknown> extends $ZodType {
|
341
|
+
_zod: $ZodNumberInternals<Input>;
|
342
|
+
}
|
343
|
+
export declare const $ZodNumber: core.$constructor<$ZodNumber>;
|
344
|
+
export interface $ZodNumberFormatDef extends $ZodNumberDef, checks.$ZodCheckNumberFormatDef {
|
345
|
+
}
|
346
|
+
export interface $ZodNumberFormatInternals extends $ZodNumberInternals<number>, checks.$ZodCheckNumberFormatInternals {
|
347
|
+
def: $ZodNumberFormatDef;
|
348
|
+
isst: errors.$ZodIssueInvalidType;
|
349
|
+
}
|
350
|
+
export interface $ZodNumberFormat extends $ZodType {
|
351
|
+
_zod: $ZodNumberFormatInternals;
|
352
|
+
}
|
353
|
+
export declare const $ZodNumberFormat: core.$constructor<$ZodNumberFormat>;
|
354
|
+
export interface $ZodBooleanDef extends $ZodTypeDef {
|
355
|
+
type: "boolean";
|
356
|
+
coerce?: boolean;
|
357
|
+
checks?: checks.$ZodCheck<boolean>[];
|
358
|
+
}
|
359
|
+
export interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
|
360
|
+
pattern: RegExp;
|
361
|
+
def: $ZodBooleanDef;
|
362
|
+
isst: errors.$ZodIssueInvalidType;
|
363
|
+
}
|
364
|
+
export interface $ZodBoolean<T = unknown> extends $ZodType {
|
365
|
+
_zod: $ZodBooleanInternals<T>;
|
366
|
+
}
|
367
|
+
export declare const $ZodBoolean: core.$constructor<$ZodBoolean>;
|
368
|
+
export interface $ZodBigIntDef extends $ZodTypeDef {
|
369
|
+
type: "bigint";
|
370
|
+
coerce?: boolean;
|
371
|
+
}
|
372
|
+
export interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
|
373
|
+
pattern: RegExp;
|
374
|
+
/** @internal Internal API, use with caution */
|
375
|
+
def: $ZodBigIntDef;
|
376
|
+
isst: errors.$ZodIssueInvalidType;
|
377
|
+
bag: util.LoosePartial<{
|
378
|
+
minimum: bigint;
|
379
|
+
maximum: bigint;
|
380
|
+
format: string;
|
381
|
+
}>;
|
382
|
+
}
|
383
|
+
export interface $ZodBigInt<T = unknown> extends $ZodType {
|
384
|
+
_zod: $ZodBigIntInternals<T>;
|
385
|
+
}
|
386
|
+
export declare const $ZodBigInt: core.$constructor<$ZodBigInt>;
|
387
|
+
export interface $ZodBigIntFormatDef extends $ZodBigIntDef, checks.$ZodCheckBigIntFormatDef {
|
388
|
+
check: "bigint_format";
|
389
|
+
}
|
390
|
+
export interface $ZodBigIntFormatInternals extends $ZodBigIntInternals<bigint>, checks.$ZodCheckBigIntFormatInternals {
|
391
|
+
def: $ZodBigIntFormatDef;
|
392
|
+
}
|
393
|
+
export interface $ZodBigIntFormat extends $ZodType {
|
394
|
+
_zod: $ZodBigIntFormatInternals;
|
395
|
+
}
|
396
|
+
export declare const $ZodBigIntFormat: core.$constructor<$ZodBigIntFormat>;
|
397
|
+
export interface $ZodSymbolDef extends $ZodTypeDef {
|
398
|
+
type: "symbol";
|
399
|
+
}
|
400
|
+
export interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
|
401
|
+
def: $ZodSymbolDef;
|
402
|
+
isst: errors.$ZodIssueInvalidType;
|
403
|
+
}
|
404
|
+
export interface $ZodSymbol extends $ZodType {
|
405
|
+
_zod: $ZodSymbolInternals;
|
406
|
+
}
|
407
|
+
export declare const $ZodSymbol: core.$constructor<$ZodSymbol>;
|
408
|
+
export interface $ZodUndefinedDef extends $ZodTypeDef {
|
409
|
+
type: "undefined";
|
410
|
+
}
|
411
|
+
export interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
|
412
|
+
pattern: RegExp;
|
413
|
+
def: $ZodUndefinedDef;
|
414
|
+
values: util.PrimitiveSet;
|
415
|
+
isst: errors.$ZodIssueInvalidType;
|
416
|
+
}
|
417
|
+
export interface $ZodUndefined extends $ZodType {
|
418
|
+
_zod: $ZodUndefinedInternals;
|
419
|
+
}
|
420
|
+
export declare const $ZodUndefined: core.$constructor<$ZodUndefined>;
|
421
|
+
export interface $ZodNullDef extends $ZodTypeDef {
|
422
|
+
type: "null";
|
423
|
+
}
|
424
|
+
export interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
|
425
|
+
pattern: RegExp;
|
426
|
+
def: $ZodNullDef;
|
427
|
+
values: util.PrimitiveSet;
|
428
|
+
isst: errors.$ZodIssueInvalidType;
|
429
|
+
}
|
430
|
+
export interface $ZodNull extends $ZodType {
|
431
|
+
_zod: $ZodNullInternals;
|
432
|
+
}
|
433
|
+
export declare const $ZodNull: core.$constructor<$ZodNull>;
|
434
|
+
export interface $ZodAnyDef extends $ZodTypeDef {
|
435
|
+
type: "any";
|
436
|
+
}
|
437
|
+
export interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
|
438
|
+
def: $ZodAnyDef;
|
439
|
+
isst: never;
|
440
|
+
}
|
441
|
+
export interface $ZodAny extends $ZodType {
|
442
|
+
_zod: $ZodAnyInternals;
|
443
|
+
}
|
444
|
+
export declare const $ZodAny: core.$constructor<$ZodAny>;
|
445
|
+
export interface $ZodUnknownDef extends $ZodTypeDef {
|
446
|
+
type: "unknown";
|
447
|
+
}
|
448
|
+
export interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
|
449
|
+
def: $ZodUnknownDef;
|
450
|
+
isst: never;
|
451
|
+
}
|
452
|
+
export interface $ZodUnknown extends $ZodType {
|
453
|
+
_zod: $ZodUnknownInternals;
|
454
|
+
}
|
455
|
+
export declare const $ZodUnknown: core.$constructor<$ZodUnknown>;
|
456
|
+
export interface $ZodNeverDef extends $ZodTypeDef {
|
457
|
+
type: "never";
|
458
|
+
}
|
459
|
+
export interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
|
460
|
+
def: $ZodNeverDef;
|
461
|
+
isst: errors.$ZodIssueInvalidType;
|
462
|
+
}
|
463
|
+
export interface $ZodNever extends $ZodType {
|
464
|
+
_zod: $ZodNeverInternals;
|
465
|
+
}
|
466
|
+
export declare const $ZodNever: core.$constructor<$ZodNever>;
|
467
|
+
export interface $ZodVoidDef extends $ZodTypeDef {
|
468
|
+
type: "void";
|
469
|
+
}
|
470
|
+
export interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
|
471
|
+
def: $ZodVoidDef;
|
472
|
+
isst: errors.$ZodIssueInvalidType;
|
473
|
+
}
|
474
|
+
export interface $ZodVoid extends $ZodType {
|
475
|
+
_zod: $ZodVoidInternals;
|
476
|
+
}
|
477
|
+
export declare const $ZodVoid: core.$constructor<$ZodVoid>;
|
478
|
+
export interface $ZodDateDef extends $ZodTypeDef {
|
479
|
+
type: "date";
|
480
|
+
coerce?: boolean;
|
481
|
+
}
|
482
|
+
export interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
|
483
|
+
def: $ZodDateDef;
|
484
|
+
isst: errors.$ZodIssueInvalidType;
|
485
|
+
bag: util.LoosePartial<{
|
486
|
+
minimum: Date;
|
487
|
+
maximum: Date;
|
488
|
+
format: string;
|
489
|
+
}>;
|
490
|
+
}
|
491
|
+
export interface $ZodDate<T = unknown> extends $ZodType {
|
492
|
+
_zod: $ZodDateInternals<T>;
|
493
|
+
}
|
494
|
+
export declare const $ZodDate: core.$constructor<$ZodDate>;
|
495
|
+
export interface $ZodArrayDef<T extends $ZodType = $ZodType> extends $ZodTypeDef {
|
496
|
+
type: "array";
|
497
|
+
element: T;
|
498
|
+
}
|
499
|
+
export interface $ZodArrayInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<core.output<T>[], core.input<T>[]> {
|
500
|
+
def: $ZodArrayDef<T>;
|
501
|
+
isst: errors.$ZodIssueInvalidType;
|
502
|
+
}
|
503
|
+
export interface $ZodArray<T extends $ZodType = $ZodType> extends $ZodType {
|
504
|
+
_zod: $ZodArrayInternals<T>;
|
505
|
+
}
|
506
|
+
export declare const $ZodArray: core.$constructor<$ZodArray>;
|
507
|
+
export type $ZodShape = Readonly<{
|
508
|
+
[k: string]: $ZodType;
|
509
|
+
}>;
|
510
|
+
export interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
|
511
|
+
type: "object";
|
512
|
+
shape: Shape;
|
513
|
+
catchall?: $ZodType | undefined;
|
514
|
+
}
|
515
|
+
export interface $ZodObjectInternals<
|
516
|
+
/** @ts-ignore Cast variance */
|
517
|
+
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodTypeInternals<any, any> {
|
518
|
+
def: $ZodObjectDef<Shape>;
|
519
|
+
config: Config;
|
520
|
+
isst: errors.$ZodIssueInvalidType | errors.$ZodIssueUnrecognizedKeys;
|
521
|
+
disc: util.DiscriminatorMap;
|
522
|
+
"~output": $InferObjectOutput<Shape, Config["out"]>;
|
523
|
+
"~input": $InferObjectInput<Shape, Config["in"]>;
|
524
|
+
}
|
525
|
+
export type $ZodLooseShape = Record<string, any>;
|
526
|
+
type OptionalOutSchema = {
|
527
|
+
_zod: {
|
528
|
+
optout: "optional";
|
529
|
+
};
|
530
|
+
};
|
531
|
+
type OptionalInSchema = {
|
532
|
+
_zod: {
|
533
|
+
optin: "optional";
|
534
|
+
};
|
535
|
+
};
|
536
|
+
export type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
|
537
|
+
-readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: core.output<T[k]>;
|
538
|
+
} & {
|
539
|
+
-readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: core.output<T[k]>;
|
540
|
+
} & Extra>;
|
541
|
+
export type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? object : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
|
542
|
+
-readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: core.input<T[k]>;
|
543
|
+
} & {
|
544
|
+
-readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: core.input<T[k]>;
|
545
|
+
} & Extra>;
|
546
|
+
export type $ZodObjectConfig = {
|
547
|
+
out: Record<string, unknown>;
|
548
|
+
in: Record<string, unknown>;
|
549
|
+
};
|
550
|
+
export type $loose = {
|
551
|
+
out: Record<string, unknown>;
|
552
|
+
in: Record<string, unknown>;
|
553
|
+
};
|
554
|
+
export type $strict = {
|
555
|
+
out: {};
|
556
|
+
in: {};
|
557
|
+
};
|
558
|
+
export type $strip = {
|
559
|
+
out: {};
|
560
|
+
in: {};
|
561
|
+
};
|
562
|
+
export type $catchall<T extends $ZodType> = {
|
563
|
+
out: {
|
564
|
+
[k: string]: core.output<T>;
|
565
|
+
};
|
566
|
+
in: {
|
567
|
+
[k: string]: core.input<T>;
|
568
|
+
};
|
569
|
+
};
|
570
|
+
export interface $ZodObject<
|
571
|
+
/** @ts-ignore Cast variance */
|
572
|
+
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType {
|
573
|
+
_zod: $ZodObjectInternals<Shape, Params>;
|
574
|
+
}
|
575
|
+
export declare const $ZodObject: core.$constructor<$ZodObject>;
|
576
|
+
export type $InferUnionOutput<T extends $ZodType> = T extends any ? core.output<T> : never;
|
577
|
+
export type $InferUnionInput<T extends $ZodType> = T extends any ? core.input<T> : never;
|
578
|
+
export interface $ZodUnionDef<Options extends readonly $ZodType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
579
|
+
type: "union";
|
580
|
+
options: Options;
|
581
|
+
}
|
582
|
+
export interface $ZodUnionInternals<T extends readonly $ZodType[] = readonly $ZodType[]> extends $ZodTypeInternals<$InferUnionOutput<T[number]>, $InferUnionInput<T[number]>> {
|
583
|
+
def: $ZodUnionDef<T>;
|
584
|
+
isst: errors.$ZodIssueInvalidUnion;
|
585
|
+
pattern: T[number]["_zod"]["pattern"];
|
586
|
+
}
|
587
|
+
export interface $ZodUnion<T extends readonly $ZodType[] = readonly $ZodType[]> extends $ZodType {
|
588
|
+
_zod: $ZodUnionInternals<T>;
|
589
|
+
}
|
590
|
+
export declare const $ZodUnion: core.$constructor<$ZodUnion>;
|
591
|
+
export interface $ZodDiscriminatedUnionDef<Options extends readonly $ZodType[] = readonly $ZodType[]> extends $ZodUnionDef<Options> {
|
592
|
+
discriminator: string;
|
593
|
+
unionFallback?: boolean;
|
594
|
+
}
|
595
|
+
export interface $ZodDiscriminatedUnionInternals<Options extends readonly $ZodType[] = readonly $ZodType[]> extends $ZodUnionInternals<Options> {
|
596
|
+
def: $ZodDiscriminatedUnionDef<Options>;
|
597
|
+
disc: util.DiscriminatorMap;
|
598
|
+
}
|
599
|
+
export interface $ZodDiscriminatedUnion<T extends readonly $ZodType[] = readonly $ZodType[]> extends $ZodType {
|
600
|
+
_zod: $ZodDiscriminatedUnionInternals<T>;
|
601
|
+
}
|
602
|
+
export declare const $ZodDiscriminatedUnion: core.$constructor<$ZodDiscriminatedUnion>;
|
603
|
+
export interface $ZodIntersectionDef extends $ZodTypeDef {
|
604
|
+
type: "intersection";
|
605
|
+
left: $ZodType;
|
606
|
+
right: $ZodType;
|
607
|
+
}
|
608
|
+
export interface $ZodIntersectionInternals<A extends $ZodType = $ZodType, B extends $ZodType = $ZodType> extends $ZodTypeInternals<core.output<A> & core.output<B>, core.input<A> & core.input<B>> {
|
609
|
+
def: $ZodIntersectionDef;
|
610
|
+
isst: never;
|
611
|
+
}
|
612
|
+
export interface $ZodIntersection<A extends $ZodType = $ZodType, B extends $ZodType = $ZodType> extends $ZodType {
|
613
|
+
_zod: $ZodIntersectionInternals<A, B>;
|
614
|
+
}
|
615
|
+
export declare const $ZodIntersection: core.$constructor<$ZodIntersection>;
|
616
|
+
export interface $ZodTupleDef<T extends util.TupleItems = util.TupleItems, Rest extends $ZodType | null = $ZodType | null> extends $ZodTypeDef {
|
617
|
+
type: "tuple";
|
618
|
+
items: T;
|
619
|
+
rest: Rest;
|
620
|
+
}
|
621
|
+
export type $InferTupleInputType<T extends util.TupleItems, Rest extends $ZodType | null> = [
|
622
|
+
...TupleInputTypeWithOptionals<T>,
|
623
|
+
...(Rest extends $ZodType ? core.input<Rest>[] : [])
|
624
|
+
];
|
625
|
+
type TupleInputTypeNoOptionals<T extends util.TupleItems> = {
|
626
|
+
[k in keyof T]: core.input<T[k]>;
|
627
|
+
};
|
628
|
+
type TupleInputTypeWithOptionals<T extends util.TupleItems> = T extends readonly [
|
629
|
+
...infer Prefix extends $ZodType[],
|
630
|
+
infer Tail extends $ZodType
|
631
|
+
] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, Tail["_zod"]["input"]?] : TupleInputTypeNoOptionals<T> : [];
|
632
|
+
export type $InferTupleOutputType<T extends util.TupleItems, Rest extends $ZodType | null> = [
|
633
|
+
...TupleOutputTypeWithOptionals<T>,
|
634
|
+
...(Rest extends $ZodType ? core.output<Rest>[] : [])
|
635
|
+
];
|
636
|
+
type TupleOutputTypeNoOptionals<T extends util.TupleItems> = {
|
637
|
+
[k in keyof T]: core.output<T[k]>;
|
638
|
+
};
|
639
|
+
type TupleOutputTypeWithOptionals<T extends util.TupleItems> = T extends readonly [
|
640
|
+
...infer Prefix extends $ZodType[],
|
641
|
+
infer Tail extends $ZodType
|
642
|
+
] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, core.output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
|
643
|
+
export interface $ZodTupleInternals<T extends util.TupleItems = util.TupleItems, Rest extends $ZodType | null = $ZodType | null> extends $ZodTypeInternals<$InferTupleOutputType<T, Rest>, $InferTupleInputType<T, Rest>> {
|
644
|
+
def: $ZodTupleDef<T, Rest>;
|
645
|
+
isst: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<unknown[]> | errors.$ZodIssueTooSmall<unknown[]>;
|
646
|
+
}
|
647
|
+
export interface $ZodTuple<T extends util.TupleItems = util.TupleItems, Rest extends $ZodType | null = $ZodType | null> extends $ZodType {
|
648
|
+
_zod: $ZodTupleInternals<T, Rest>;
|
649
|
+
}
|
650
|
+
export declare const $ZodTuple: core.$constructor<$ZodTuple>;
|
651
|
+
export type $ZodRecordKey = $ZodType<string | number | symbol, string | number | symbol>;
|
652
|
+
export interface $ZodRecordDef extends $ZodTypeDef {
|
653
|
+
type: "record";
|
654
|
+
keyType: $ZodRecordKey;
|
655
|
+
valueType: $ZodType;
|
656
|
+
}
|
657
|
+
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends $ZodType = $ZodType> = undefined extends Key["_zod"]["values"] ? string extends Key["_zod"]["output"] ? Record<Key["_zod"]["output"], core.output<Value>> : number extends Key["_zod"]["output"] ? Record<Key["_zod"]["output"], core.output<Value>> : symbol extends Key["_zod"]["output"] ? Record<Key["_zod"]["output"], core.output<Value>> : Partial<Record<Key["_zod"]["output"], core.output<Value>>> : Record<Key["_zod"]["output"], core.output<Value>>;
|
658
|
+
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends $ZodType = $ZodType> = undefined extends Key["_zod"]["values"] ? string extends Key["_zod"]["input"] ? Record<Key["_zod"]["input"], Value["_zod"]["input"]> : number extends Key["_zod"]["input"] ? Record<Key["_zod"]["input"], Value["_zod"]["input"]> : symbol extends Key["_zod"]["input"] ? Record<Key["_zod"]["input"], Value["_zod"]["input"]> : Partial<Record<Key["_zod"]["input"], Value["_zod"]["input"]>> : Record<Key["_zod"]["input"], Value["_zod"]["input"]>;
|
659
|
+
export interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends $ZodType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
|
660
|
+
def: $ZodRecordDef;
|
661
|
+
isst: errors.$ZodIssueInvalidType | errors.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
|
662
|
+
}
|
663
|
+
export interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends $ZodType = $ZodType> extends $ZodType {
|
664
|
+
_zod: $ZodRecordInternals<Key, Value>;
|
665
|
+
}
|
666
|
+
export declare const $ZodRecord: core.$constructor<$ZodRecord>;
|
667
|
+
export interface $ZodMapDef extends $ZodTypeDef {
|
668
|
+
type: "map";
|
669
|
+
keyType: $ZodType;
|
670
|
+
valueType: $ZodType;
|
671
|
+
}
|
672
|
+
export interface $ZodMapInternals<Key extends $ZodType = $ZodType, Value extends $ZodType = $ZodType> extends $ZodTypeInternals<Map<core.output<Key>, core.output<Value>>, Map<core.input<Key>, core.input<Value>>> {
|
673
|
+
def: $ZodMapDef;
|
674
|
+
isst: errors.$ZodIssueInvalidType | errors.$ZodIssueInvalidKey | errors.$ZodIssueInvalidElement<unknown>;
|
675
|
+
}
|
676
|
+
export interface $ZodMap<Key extends $ZodType = $ZodType, Value extends $ZodType = $ZodType> extends $ZodType {
|
677
|
+
_zod: $ZodMapInternals<Key, Value>;
|
678
|
+
}
|
679
|
+
export declare const $ZodMap: core.$constructor<$ZodMap>;
|
680
|
+
export interface $ZodSetDef extends $ZodTypeDef {
|
681
|
+
type: "set";
|
682
|
+
valueType: $ZodType;
|
683
|
+
}
|
684
|
+
export interface $ZodSetInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<Set<core.output<T>>, Set<core.input<T>>> {
|
685
|
+
def: $ZodSetDef;
|
686
|
+
isst: errors.$ZodIssueInvalidType;
|
687
|
+
}
|
688
|
+
export interface $ZodSet<T extends $ZodType = $ZodType> extends $ZodType {
|
689
|
+
_zod: $ZodSetInternals<T>;
|
690
|
+
}
|
691
|
+
export declare const $ZodSet: core.$constructor<$ZodSet>;
|
692
|
+
export type $InferEnumOutput<T extends util.EnumLike> = T[keyof T] & {};
|
693
|
+
export type $InferEnumInput<T extends util.EnumLike> = T[keyof T] & {};
|
694
|
+
export interface $ZodEnumDef<T extends util.EnumLike = util.EnumLike> extends $ZodTypeDef {
|
695
|
+
type: "enum";
|
696
|
+
entries: T;
|
697
|
+
}
|
698
|
+
export interface $ZodEnumInternals<
|
699
|
+
/** @ts-ignore Cast variance */
|
700
|
+
out T extends util.EnumLike = util.EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
|
701
|
+
def: $ZodEnumDef<T>;
|
702
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
703
|
+
values: util.PrimitiveSet;
|
704
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
705
|
+
pattern: RegExp;
|
706
|
+
isst: errors.$ZodIssueInvalidValue;
|
707
|
+
}
|
708
|
+
export interface $ZodEnum<T extends util.EnumLike = util.EnumLike> extends $ZodType {
|
709
|
+
_zod: $ZodEnumInternals<T>;
|
710
|
+
}
|
711
|
+
export declare const $ZodEnum: core.$constructor<$ZodEnum>;
|
712
|
+
export interface $ZodLiteralDef extends $ZodTypeDef {
|
713
|
+
type: "literal";
|
714
|
+
values: util.LiteralArray;
|
715
|
+
}
|
716
|
+
export interface $ZodLiteralInternals<T extends util.Primitive = util.Primitive> extends $ZodTypeInternals<T, T> {
|
717
|
+
def: $ZodLiteralDef;
|
718
|
+
values: Set<T>;
|
719
|
+
pattern: RegExp;
|
720
|
+
isst: errors.$ZodIssueInvalidValue;
|
721
|
+
}
|
722
|
+
export interface $ZodLiteral<T extends util.Primitive = util.Primitive> extends $ZodType {
|
723
|
+
_zod: $ZodLiteralInternals<T>;
|
724
|
+
}
|
725
|
+
export declare const $ZodLiteral: core.$constructor<$ZodLiteral>;
|
726
|
+
declare global {
|
727
|
+
interface File {
|
728
|
+
}
|
729
|
+
}
|
730
|
+
export interface $ZodFileDef extends $ZodTypeDef {
|
731
|
+
type: "file";
|
732
|
+
}
|
733
|
+
export interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
|
734
|
+
def: $ZodFileDef;
|
735
|
+
isst: errors.$ZodIssueInvalidType;
|
736
|
+
}
|
737
|
+
export interface $ZodFile extends $ZodType {
|
738
|
+
_zod: $ZodFileInternals;
|
739
|
+
}
|
740
|
+
export declare const $ZodFile: core.$constructor<$ZodFile>;
|
741
|
+
export interface $ZodTransformDef extends $ZodTypeDef {
|
742
|
+
type: "transform";
|
743
|
+
transform: (input: unknown, payload: ParsePayload<unknown>) => util.MaybeAsync<unknown>;
|
744
|
+
}
|
745
|
+
export interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
|
746
|
+
def: $ZodTransformDef;
|
747
|
+
isst: never;
|
748
|
+
}
|
749
|
+
export interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
|
750
|
+
_zod: $ZodTransformInternals<O, I>;
|
751
|
+
}
|
752
|
+
export declare const $ZodTransform: core.$constructor<$ZodTransform>;
|
753
|
+
export interface $ZodOptionalDef<T extends $ZodType = $ZodType> extends $ZodTypeDef {
|
754
|
+
type: "optional";
|
755
|
+
innerType: T;
|
756
|
+
}
|
757
|
+
export interface $ZodOptionalInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<core.output<T> | undefined, core.input<T> | undefined> {
|
758
|
+
def: $ZodOptionalDef<T>;
|
759
|
+
optin: "optional";
|
760
|
+
optout: "optional";
|
761
|
+
isst: never;
|
762
|
+
values: T["_zod"]["values"];
|
763
|
+
pattern: T["_zod"]["pattern"];
|
764
|
+
}
|
765
|
+
export interface $ZodOptional<T extends $ZodType = $ZodType> extends $ZodType {
|
766
|
+
_zod: $ZodOptionalInternals<T>;
|
767
|
+
}
|
768
|
+
export declare const $ZodOptional: core.$constructor<$ZodOptional>;
|
769
|
+
export interface $ZodNullableDef<T extends $ZodType = $ZodType> extends $ZodTypeDef {
|
770
|
+
type: "nullable";
|
771
|
+
innerType: T;
|
772
|
+
}
|
773
|
+
export interface $ZodNullableInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<core.output<T> | null, core.input<T> | null> {
|
774
|
+
def: $ZodNullableDef<T>;
|
775
|
+
optin: T["_zod"]["optin"];
|
776
|
+
optout: T["_zod"]["optout"];
|
777
|
+
isst: never;
|
778
|
+
values: T["_zod"]["values"];
|
779
|
+
pattern: T["_zod"]["pattern"];
|
780
|
+
}
|
781
|
+
export interface $ZodNullable<T extends $ZodType = $ZodType> extends $ZodType {
|
782
|
+
_zod: $ZodNullableInternals<T>;
|
783
|
+
}
|
784
|
+
export declare const $ZodNullable: core.$constructor<$ZodNullable>;
|
785
|
+
export interface $ZodDefaultDef<T extends $ZodType = $ZodType> extends $ZodTypeDef {
|
786
|
+
type: "default";
|
787
|
+
innerType: T;
|
788
|
+
/** The default value. May be a getter. */
|
789
|
+
defaultValue: util.NoUndefined<core.output<T>>;
|
790
|
+
}
|
791
|
+
export interface $ZodDefaultInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, core.input<T> | undefined> {
|
792
|
+
def: $ZodDefaultDef<T>;
|
793
|
+
optin: "optional";
|
794
|
+
isst: never;
|
795
|
+
values: T["_zod"]["values"];
|
796
|
+
}
|
797
|
+
export interface $ZodDefault<T extends $ZodType = $ZodType> extends $ZodType {
|
798
|
+
_zod: $ZodDefaultInternals<T>;
|
799
|
+
}
|
800
|
+
export declare const $ZodDefault: core.$constructor<$ZodDefault>;
|
801
|
+
export interface $ZodPrefaultDef<T extends $ZodType = $ZodType> extends $ZodTypeDef {
|
802
|
+
type: "prefault";
|
803
|
+
innerType: T;
|
804
|
+
/** The default value. May be a getter. */
|
805
|
+
defaultValue: core.input<T>;
|
806
|
+
}
|
807
|
+
export interface $ZodPrefaultInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, core.input<T> | undefined> {
|
808
|
+
def: $ZodPrefaultDef<T>;
|
809
|
+
optin: "optional";
|
810
|
+
isst: never;
|
811
|
+
values: T["_zod"]["values"];
|
812
|
+
}
|
813
|
+
export interface $ZodPrefault<T extends $ZodType = $ZodType> extends $ZodType {
|
814
|
+
_zod: $ZodPrefaultInternals<T>;
|
815
|
+
}
|
816
|
+
export declare const $ZodPrefault: core.$constructor<$ZodPrefault>;
|
817
|
+
export interface $ZodNonOptionalDef<T extends $ZodType = $ZodType> extends $ZodTypeDef {
|
818
|
+
type: "nonoptional";
|
819
|
+
innerType: T;
|
820
|
+
}
|
821
|
+
export interface $ZodNonOptionalInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, util.NoUndefined<core.input<T>>> {
|
822
|
+
def: $ZodNonOptionalDef<T>;
|
823
|
+
isst: errors.$ZodIssueInvalidType;
|
824
|
+
values: T["_zod"]["values"];
|
825
|
+
}
|
826
|
+
export interface $ZodNonOptional<T extends $ZodType = $ZodType> extends $ZodType {
|
827
|
+
_zod: $ZodNonOptionalInternals<T>;
|
828
|
+
}
|
829
|
+
export declare const $ZodNonOptional: core.$constructor<$ZodNonOptional>;
|
830
|
+
export interface $ZodSuccessDef extends $ZodTypeDef {
|
831
|
+
type: "success";
|
832
|
+
innerType: $ZodType;
|
833
|
+
}
|
834
|
+
export interface $ZodSuccessInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<boolean, core.input<T>> {
|
835
|
+
def: $ZodSuccessDef;
|
836
|
+
isst: never;
|
837
|
+
}
|
838
|
+
export interface $ZodSuccess<T extends $ZodType = $ZodType> extends $ZodType {
|
839
|
+
_zod: $ZodSuccessInternals<T>;
|
840
|
+
}
|
841
|
+
export declare const $ZodSuccess: core.$constructor<$ZodSuccess>;
|
842
|
+
export interface $ZodCatchCtx extends ParsePayload {
|
843
|
+
/** @deprecated Use `ctx.issues` */
|
844
|
+
error: {
|
845
|
+
issues: errors.$ZodIssue[];
|
846
|
+
};
|
847
|
+
/** @deprecated Use `ctx.value` */
|
848
|
+
input: unknown;
|
849
|
+
}
|
850
|
+
export interface $ZodCatchDef extends $ZodTypeDef {
|
851
|
+
type: "catch";
|
852
|
+
innerType: $ZodType;
|
853
|
+
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
854
|
+
}
|
855
|
+
export interface $ZodCatchInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T> | util.Whatever> {
|
856
|
+
def: $ZodCatchDef;
|
857
|
+
optin: T["_zod"]["optin"];
|
858
|
+
optout: T["_zod"]["optout"];
|
859
|
+
isst: never;
|
860
|
+
values: T["_zod"]["values"];
|
861
|
+
}
|
862
|
+
export interface $ZodCatch<T extends $ZodType = $ZodType> extends $ZodType {
|
863
|
+
_zod: $ZodCatchInternals<T>;
|
864
|
+
}
|
865
|
+
export declare const $ZodCatch: core.$constructor<$ZodCatch>;
|
866
|
+
export interface $ZodNaNDef extends $ZodTypeDef {
|
867
|
+
type: "nan";
|
868
|
+
}
|
869
|
+
export interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
|
870
|
+
def: $ZodNaNDef;
|
871
|
+
isst: errors.$ZodIssueInvalidType;
|
872
|
+
}
|
873
|
+
export interface $ZodNaN extends $ZodType {
|
874
|
+
_zod: $ZodNaNInternals;
|
875
|
+
}
|
876
|
+
export declare const $ZodNaN: core.$constructor<$ZodNaN>;
|
877
|
+
export interface $ZodPipeDef<A extends $ZodType = $ZodType, B extends $ZodType = $ZodType> extends $ZodTypeDef {
|
878
|
+
type: "pipe";
|
879
|
+
in: A;
|
880
|
+
out: B;
|
881
|
+
}
|
882
|
+
export interface $ZodPipeInternals<A extends $ZodType = $ZodType, B extends $ZodType = $ZodType> extends $ZodTypeInternals<core.output<B>, core.input<A>> {
|
883
|
+
def: $ZodPipeDef<A, B>;
|
884
|
+
isst: never;
|
885
|
+
values: A["_zod"]["values"];
|
886
|
+
optin: A["_zod"]["optin"];
|
887
|
+
optout: B["_zod"]["optout"];
|
888
|
+
}
|
889
|
+
export interface $ZodPipe<A extends $ZodType = $ZodType, B extends $ZodType = $ZodType> extends $ZodType {
|
890
|
+
_zod: $ZodPipeInternals<A, B>;
|
891
|
+
}
|
892
|
+
export declare const $ZodPipe: core.$constructor<$ZodPipe>;
|
893
|
+
export interface $ZodReadonlyDef extends $ZodTypeDef {
|
894
|
+
type: "readonly";
|
895
|
+
innerType: $ZodType;
|
896
|
+
}
|
897
|
+
export interface $ZodReadonlyInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<util.MakeReadonly<core.output<T>>, util.MakeReadonly<core.input<T>>> {
|
898
|
+
def: $ZodReadonlyDef;
|
899
|
+
optin: T["_zod"]["optin"];
|
900
|
+
optout: T["_zod"]["optout"];
|
901
|
+
isst: never;
|
902
|
+
disc: T["_zod"]["disc"];
|
903
|
+
}
|
904
|
+
export interface $ZodReadonly<T extends $ZodType = $ZodType> extends $ZodType {
|
905
|
+
_zod: $ZodReadonlyInternals<T>;
|
906
|
+
}
|
907
|
+
export declare const $ZodReadonly: core.$constructor<$ZodReadonly>;
|
908
|
+
export interface $ZodTemplateLiteralDef extends $ZodTypeDef {
|
909
|
+
type: "template_literal";
|
910
|
+
parts: $ZodTemplateLiteralPart[];
|
911
|
+
}
|
912
|
+
export interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
|
913
|
+
pattern: RegExp;
|
914
|
+
def: $ZodTemplateLiteralDef;
|
915
|
+
isst: errors.$ZodIssueInvalidType;
|
916
|
+
}
|
917
|
+
export interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
|
918
|
+
_zod: $ZodTemplateLiteralInternals<Template>;
|
919
|
+
}
|
920
|
+
type LiteralPart = Exclude<util.Literal, symbol>;
|
921
|
+
interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
|
922
|
+
pattern: RegExp;
|
923
|
+
}
|
924
|
+
interface SchemaPart extends $ZodType {
|
925
|
+
_zod: SchemaPartInternals;
|
926
|
+
}
|
927
|
+
export type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
|
928
|
+
type UndefinedToEmptyString<T> = T extends undefined ? "" : T;
|
929
|
+
type AppendToTemplateLiteral<Template extends string, Suffix extends LiteralPart | $ZodType> = Suffix extends LiteralPart ? `${Template}${UndefinedToEmptyString<Suffix>}` : `${Template}${UndefinedToEmptyString<LiteralPart & core.output<Suffix & $ZodType>>}`;
|
930
|
+
export type $PartsToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = [] extends Parts ? `` : Parts extends [...infer Rest extends $ZodTemplateLiteralPart[], infer Last extends $ZodTemplateLiteralPart] ? AppendToTemplateLiteral<$PartsToTemplateLiteral<Rest>, Last> : never;
|
931
|
+
export declare const $ZodTemplateLiteral: core.$constructor<$ZodTemplateLiteral>;
|
932
|
+
export interface $ZodPromiseDef extends $ZodTypeDef {
|
933
|
+
type: "promise";
|
934
|
+
innerType: $ZodType;
|
935
|
+
}
|
936
|
+
export interface $ZodPromiseInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<core.output<T>, util.MaybeAsync<core.input<T>>> {
|
937
|
+
def: $ZodPromiseDef;
|
938
|
+
isst: never;
|
939
|
+
}
|
940
|
+
export interface $ZodPromise<T extends $ZodType = $ZodType> extends $ZodType {
|
941
|
+
_zod: $ZodPromiseInternals<T>;
|
942
|
+
}
|
943
|
+
export declare const $ZodPromise: core.$constructor<$ZodPromise>;
|
944
|
+
export interface $ZodLazyDef extends $ZodTypeDef {
|
945
|
+
type: "lazy";
|
946
|
+
getter: () => $ZodType;
|
947
|
+
}
|
948
|
+
export interface $ZodLazyInternals<T extends $ZodType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T>> {
|
949
|
+
def: $ZodLazyDef;
|
950
|
+
isst: never;
|
951
|
+
/** Auto-cached way to retrieve the inner schema */
|
952
|
+
innerType: T;
|
953
|
+
pattern: T["_zod"]["pattern"];
|
954
|
+
disc: T["_zod"]["disc"];
|
955
|
+
optin: T["_zod"]["optin"];
|
956
|
+
optout: T["_zod"]["optout"];
|
957
|
+
}
|
958
|
+
export interface $ZodLazy<T extends $ZodType = $ZodType> extends $ZodType {
|
959
|
+
_zod: $ZodLazyInternals<T>;
|
960
|
+
}
|
961
|
+
export declare const $ZodLazy: core.$constructor<$ZodLazy>;
|
962
|
+
export interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, checks.$ZodCheckDef {
|
963
|
+
type: "custom";
|
964
|
+
check: "custom";
|
965
|
+
path?: PropertyKey[] | undefined;
|
966
|
+
error?: errors.$ZodErrorMap | undefined;
|
967
|
+
params?: Record<string, any> | undefined;
|
968
|
+
fn: (arg: O) => unknown;
|
969
|
+
}
|
970
|
+
export interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, checks.$ZodCheckInternals<O> {
|
971
|
+
def: $ZodCustomDef;
|
972
|
+
issc: errors.$ZodIssue;
|
973
|
+
isst: never;
|
974
|
+
bag: util.LoosePartial<{
|
975
|
+
Class: typeof util.Class;
|
976
|
+
}>;
|
977
|
+
}
|
978
|
+
export interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
979
|
+
_zod: $ZodCustomInternals<O, I>;
|
980
|
+
}
|
981
|
+
export declare const $ZodCustom: core.$constructor<$ZodCustom>;
|
982
|
+
export type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
|
983
|
+
export type $ZodStringFormatTypes = $ZodGUID | $ZodUUID | $ZodEmail | $ZodURL | $ZodEmoji | $ZodNanoID | $ZodCUID | $ZodCUID2 | $ZodULID | $ZodXID | $ZodKSUID | $ZodISODateTime | $ZodISODate | $ZodISOTime | $ZodISODuration | $ZodIPv4 | $ZodIPv6 | $ZodCIDRv4 | $ZodCIDRv6 | $ZodBase64 | $ZodBase64URL | $ZodE164 | $ZodJWT;
|