@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 @@
|
|
1
|
+
export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _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,7 @@
|
|
1
|
+
import * as core from "zod/v4/core";
|
2
|
+
import * as schemas from "./schemas.js";
|
3
|
+
export declare function string<T = unknown>(params?: string | core.$ZodStringParams): schemas.ZodMiniString<T>;
|
4
|
+
export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): schemas.ZodMiniNumber<T>;
|
5
|
+
export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): schemas.ZodMiniBoolean<T>;
|
6
|
+
export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): schemas.ZodMiniBigInt<T>;
|
7
|
+
export declare function date<T = unknown>(params?: string | core.$ZodDateParams): schemas.ZodMiniDate<T>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export * as core from "zod/v4/core";
|
2
|
+
export * from "./parse.js";
|
3
|
+
export * from "./schemas.js";
|
4
|
+
export * from "./checks.js";
|
5
|
+
export type { infer, output, input } from "zod/v4/core";
|
6
|
+
export { globalRegistry, registry, config, $output, $input, $brand, function, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, locales, } from "zod/v4/core";
|
7
|
+
/** A special constant with type `never` */
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import * as core from "zod/v4/core";
|
2
|
+
import * as schemas from "./schemas.js";
|
3
|
+
export interface ZodMiniISODateTime extends schemas.ZodMiniStringFormat<"datetime"> {
|
4
|
+
_zod: core.$ZodISODateTimeInternals;
|
5
|
+
}
|
6
|
+
export declare const ZodMiniISODateTime: core.$constructor<ZodMiniISODateTime>;
|
7
|
+
export declare function datetime(params?: string | core.$ZodISODateTimeParams): ZodMiniISODateTime;
|
8
|
+
export interface ZodMiniISODate extends schemas.ZodMiniStringFormat<"date"> {
|
9
|
+
_zod: core.$ZodISODateInternals;
|
10
|
+
}
|
11
|
+
export declare const ZodMiniISODate: core.$constructor<ZodMiniISODate>;
|
12
|
+
export declare function date(params?: string | core.$ZodISODateParams): ZodMiniISODate;
|
13
|
+
export interface ZodMiniISOTime extends schemas.ZodMiniStringFormat<"time"> {
|
14
|
+
_zod: core.$ZodISOTimeInternals;
|
15
|
+
}
|
16
|
+
export declare const ZodMiniISOTime: core.$constructor<ZodMiniISOTime>;
|
17
|
+
export declare function time(params?: string | core.$ZodISOTimeParams): ZodMiniISOTime;
|
18
|
+
export interface ZodMiniISODuration extends schemas.ZodMiniStringFormat<"duration"> {
|
19
|
+
_zod: core.$ZodISODurationInternals;
|
20
|
+
}
|
21
|
+
export declare const ZodMiniISODuration: core.$constructor<ZodMiniISODuration>;
|
22
|
+
export declare function duration(params?: string | core.$ZodISODurationParams): ZodMiniISODuration;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { parse, safeParse, parseAsync, safeParseAsync } from "zod/v4/core";
|
@@ -0,0 +1,407 @@
|
|
1
|
+
import * as core from "zod/v4/core";
|
2
|
+
import { util } from "zod/v4/core";
|
3
|
+
export * as coerce from "./coerce.js";
|
4
|
+
export * as iso from "./iso.js";
|
5
|
+
type SomeType = core.$ZodType;
|
6
|
+
export interface ZodMiniType<out Output = unknown, out Input = unknown> extends core.$ZodType<Output, Input> {
|
7
|
+
check(...checks: (core.CheckFn<this["_zod"]["output"]> | core.$ZodCheck<this["_zod"]["output"]>)[]): this;
|
8
|
+
clone(def?: this["_zod"]["def"], params?: {
|
9
|
+
parent: boolean;
|
10
|
+
}): this;
|
11
|
+
register<R extends core.$ZodRegistry>(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [core.$replace<R["_meta"], this>?] : [core.$replace<R["_meta"], this>] : ["Incompatible schema"]): this;
|
12
|
+
brand<T extends PropertyKey = PropertyKey>(value?: T): PropertyKey extends T ? this : this & Record<"_zod", Record<"~output", core.output<this> & core.$brand<T>>>;
|
13
|
+
def: this["_zod"]["def"];
|
14
|
+
parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
|
15
|
+
safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): util.SafeParseResult<core.output<this>>;
|
16
|
+
parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
|
17
|
+
safeParseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<util.SafeParseResult<core.output<this>>>;
|
18
|
+
}
|
19
|
+
export declare const ZodMiniType: core.$constructor<ZodMiniType>;
|
20
|
+
export interface ZodMiniString<Input = unknown> extends ZodMiniType {
|
21
|
+
_zod: core.$ZodStringInternals<Input>;
|
22
|
+
}
|
23
|
+
export declare const ZodMiniString: core.$constructor<ZodMiniString>;
|
24
|
+
export declare function string(params?: string | core.$ZodStringParams): ZodMiniString<string>;
|
25
|
+
export interface ZodMiniStringFormat<Format extends core.$ZodStringFormats = core.$ZodStringFormats> extends ZodMiniString {
|
26
|
+
_zod: core.$ZodStringFormatInternals<Format>;
|
27
|
+
}
|
28
|
+
export declare const ZodMiniStringFormat: core.$constructor<ZodMiniStringFormat>;
|
29
|
+
export interface ZodMiniEmail extends ZodMiniStringFormat<"email"> {
|
30
|
+
_zod: core.$ZodEmailInternals;
|
31
|
+
}
|
32
|
+
export declare const ZodMiniEmail: core.$constructor<ZodMiniEmail>;
|
33
|
+
export declare function email(params?: string | core.$ZodEmailParams): ZodMiniEmail;
|
34
|
+
export interface ZodMiniGUID extends ZodMiniStringFormat<"guid"> {
|
35
|
+
_zod: core.$ZodGUIDInternals;
|
36
|
+
}
|
37
|
+
export declare const ZodMiniGUID: core.$constructor<ZodMiniGUID>;
|
38
|
+
export declare function guid(params?: string | core.$ZodGUIDParams): ZodMiniGUID;
|
39
|
+
export interface ZodMiniUUID extends ZodMiniStringFormat<"uuid"> {
|
40
|
+
_zod: core.$ZodUUIDInternals;
|
41
|
+
}
|
42
|
+
export declare const ZodMiniUUID: core.$constructor<ZodMiniUUID>;
|
43
|
+
export declare function uuid(params?: string | core.$ZodUUIDParams): ZodMiniUUID;
|
44
|
+
export declare function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodMiniUUID;
|
45
|
+
export declare function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodMiniUUID;
|
46
|
+
export declare function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodMiniUUID;
|
47
|
+
export interface ZodMiniURL extends ZodMiniStringFormat<"url"> {
|
48
|
+
_zod: core.$ZodURLInternals;
|
49
|
+
}
|
50
|
+
export declare const ZodMiniURL: core.$constructor<ZodMiniURL>;
|
51
|
+
export declare function url(params?: string | core.$ZodURLParams): ZodMiniURL;
|
52
|
+
export interface ZodMiniEmoji extends ZodMiniStringFormat<"emoji"> {
|
53
|
+
_zod: core.$ZodEmojiInternals;
|
54
|
+
}
|
55
|
+
export declare const ZodMiniEmoji: core.$constructor<ZodMiniEmoji>;
|
56
|
+
export declare function emoji(params?: string | core.$ZodEmojiParams): ZodMiniEmoji;
|
57
|
+
export interface ZodMiniNanoID extends ZodMiniStringFormat<"nanoid"> {
|
58
|
+
_zod: core.$ZodNanoIDInternals;
|
59
|
+
}
|
60
|
+
export declare const ZodMiniNanoID: core.$constructor<ZodMiniNanoID>;
|
61
|
+
export declare function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID;
|
62
|
+
export interface ZodMiniCUID extends ZodMiniStringFormat<"cuid"> {
|
63
|
+
_zod: core.$ZodCUIDInternals;
|
64
|
+
}
|
65
|
+
export declare const ZodMiniCUID: core.$constructor<ZodMiniCUID>;
|
66
|
+
export declare function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID;
|
67
|
+
export interface ZodMiniCUID2 extends ZodMiniStringFormat<"cuid2"> {
|
68
|
+
_zod: core.$ZodCUID2Internals;
|
69
|
+
}
|
70
|
+
export declare const ZodMiniCUID2: core.$constructor<ZodMiniCUID2>;
|
71
|
+
export declare function cuid2(params?: string | core.$ZodCUID2Params): ZodMiniCUID2;
|
72
|
+
export interface ZodMiniULID extends ZodMiniStringFormat<"ulid"> {
|
73
|
+
_zod: core.$ZodULIDInternals;
|
74
|
+
}
|
75
|
+
export declare const ZodMiniULID: core.$constructor<ZodMiniULID>;
|
76
|
+
export declare function ulid(params?: string | core.$ZodULIDParams): ZodMiniULID;
|
77
|
+
export interface ZodMiniXID extends ZodMiniStringFormat<"xid"> {
|
78
|
+
_zod: core.$ZodXIDInternals;
|
79
|
+
}
|
80
|
+
export declare const ZodMiniXID: core.$constructor<ZodMiniXID>;
|
81
|
+
export declare function xid(params?: string | core.$ZodXIDParams): ZodMiniXID;
|
82
|
+
export interface ZodMiniKSUID extends ZodMiniStringFormat<"ksuid"> {
|
83
|
+
_zod: core.$ZodKSUIDInternals;
|
84
|
+
}
|
85
|
+
export declare const ZodMiniKSUID: core.$constructor<ZodMiniKSUID>;
|
86
|
+
export declare function ksuid(params?: string | core.$ZodKSUIDParams): ZodMiniKSUID;
|
87
|
+
export interface ZodMiniIPv4 extends ZodMiniStringFormat<"ipv4"> {
|
88
|
+
_zod: core.$ZodIPv4Internals;
|
89
|
+
}
|
90
|
+
export declare const ZodMiniIPv4: core.$constructor<ZodMiniIPv4>;
|
91
|
+
export declare function ipv4(params?: string | core.$ZodIPv4Params): ZodMiniIPv4;
|
92
|
+
export interface ZodMiniIPv6 extends ZodMiniStringFormat<"ipv6"> {
|
93
|
+
_zod: core.$ZodIPv6Internals;
|
94
|
+
}
|
95
|
+
export declare const ZodMiniIPv6: core.$constructor<ZodMiniIPv6>;
|
96
|
+
export declare function ipv6(params?: string | core.$ZodIPv6Params): ZodMiniIPv6;
|
97
|
+
export interface ZodMiniCIDRv4 extends ZodMiniStringFormat<"cidrv4"> {
|
98
|
+
_zod: core.$ZodCIDRv4Internals;
|
99
|
+
}
|
100
|
+
export declare const ZodMiniCIDRv4: core.$constructor<ZodMiniCIDRv4>;
|
101
|
+
export declare function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodMiniCIDRv4;
|
102
|
+
export interface ZodMiniCIDRv6 extends ZodMiniStringFormat<"cidrv6"> {
|
103
|
+
_zod: core.$ZodCIDRv6Internals;
|
104
|
+
}
|
105
|
+
export declare const ZodMiniCIDRv6: core.$constructor<ZodMiniCIDRv6>;
|
106
|
+
export declare function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodMiniCIDRv6;
|
107
|
+
export interface ZodMiniBase64 extends ZodMiniStringFormat<"base64"> {
|
108
|
+
_zod: core.$ZodBase64Internals;
|
109
|
+
}
|
110
|
+
export declare const ZodMiniBase64: core.$constructor<ZodMiniBase64>;
|
111
|
+
export declare function base64(params?: string | core.$ZodBase64Params): ZodMiniBase64;
|
112
|
+
export interface ZodMiniBase64URL extends ZodMiniStringFormat<"base64url"> {
|
113
|
+
_zod: core.$ZodBase64URLInternals;
|
114
|
+
}
|
115
|
+
export declare const ZodMiniBase64URL: core.$constructor<ZodMiniBase64URL>;
|
116
|
+
export declare function base64url(params?: string | core.$ZodBase64URLParams): ZodMiniBase64URL;
|
117
|
+
export interface ZodMiniE164 extends ZodMiniStringFormat<"e164"> {
|
118
|
+
_zod: core.$ZodE164Internals;
|
119
|
+
}
|
120
|
+
export declare const ZodMiniE164: core.$constructor<ZodMiniE164>;
|
121
|
+
export declare function e164(params?: string | core.$ZodE164Params): ZodMiniE164;
|
122
|
+
export interface ZodMiniJWT extends ZodMiniStringFormat<"jwt"> {
|
123
|
+
_zod: core.$ZodJWTInternals;
|
124
|
+
}
|
125
|
+
export declare const ZodMiniJWT: core.$constructor<ZodMiniJWT>;
|
126
|
+
export declare function jwt(params?: string | core.$ZodJWTParams): ZodMiniJWT;
|
127
|
+
export interface ZodMiniNumber<Input = unknown> extends ZodMiniType {
|
128
|
+
_zod: core.$ZodNumberInternals<Input>;
|
129
|
+
}
|
130
|
+
export declare const ZodMiniNumber: core.$constructor<ZodMiniNumber>;
|
131
|
+
export declare function number(params?: string | core.$ZodNumberParams): ZodMiniNumber<number>;
|
132
|
+
export interface ZodMiniNumberFormat extends ZodMiniNumber {
|
133
|
+
_zod: core.$ZodNumberFormatInternals;
|
134
|
+
}
|
135
|
+
export declare const ZodMiniNumberFormat: core.$constructor<ZodMiniNumberFormat>;
|
136
|
+
export declare function int(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat;
|
137
|
+
export declare function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat;
|
138
|
+
export declare function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat;
|
139
|
+
export declare function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat;
|
140
|
+
export declare function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat;
|
141
|
+
export interface ZodMiniBoolean<T = unknown> extends ZodMiniType {
|
142
|
+
_zod: core.$ZodBooleanInternals<T>;
|
143
|
+
}
|
144
|
+
export declare const ZodMiniBoolean: core.$constructor<ZodMiniBoolean>;
|
145
|
+
export declare function boolean(params?: string | core.$ZodBooleanParams): ZodMiniBoolean<boolean>;
|
146
|
+
export interface ZodMiniBigInt<T = unknown> extends ZodMiniType {
|
147
|
+
_zod: core.$ZodBigIntInternals<T>;
|
148
|
+
}
|
149
|
+
export declare const ZodMiniBigInt: core.$constructor<ZodMiniBigInt>;
|
150
|
+
export declare function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt<bigint>;
|
151
|
+
export interface ZodMiniBigIntFormat extends ZodMiniType {
|
152
|
+
_zod: core.$ZodBigIntFormatInternals;
|
153
|
+
}
|
154
|
+
export declare const ZodMiniBigIntFormat: core.$constructor<ZodMiniBigIntFormat>;
|
155
|
+
export declare function int64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat;
|
156
|
+
export declare function uint64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat;
|
157
|
+
export interface ZodMiniSymbol extends ZodMiniType {
|
158
|
+
_zod: core.$ZodSymbolInternals;
|
159
|
+
}
|
160
|
+
export declare const ZodMiniSymbol: core.$constructor<ZodMiniSymbol>;
|
161
|
+
export declare function symbol(params?: string | core.$ZodSymbolParams): ZodMiniSymbol;
|
162
|
+
export interface ZodMiniUndefined extends ZodMiniType {
|
163
|
+
_zod: core.$ZodUndefinedInternals;
|
164
|
+
}
|
165
|
+
export declare const ZodMiniUndefined: core.$constructor<ZodMiniUndefined>;
|
166
|
+
declare function _undefined(params?: string | core.$ZodUndefinedParams): ZodMiniUndefined;
|
167
|
+
export { _undefined as undefined };
|
168
|
+
export interface ZodMiniNull extends ZodMiniType {
|
169
|
+
_zod: core.$ZodNullInternals;
|
170
|
+
}
|
171
|
+
export declare const ZodMiniNull: core.$constructor<ZodMiniNull>;
|
172
|
+
declare function _null(params?: string | core.$ZodNullParams): ZodMiniNull;
|
173
|
+
export { _null as null };
|
174
|
+
export interface ZodMiniAny extends ZodMiniType {
|
175
|
+
_zod: core.$ZodAnyInternals;
|
176
|
+
}
|
177
|
+
export declare const ZodMiniAny: core.$constructor<ZodMiniAny>;
|
178
|
+
export declare function any(): ZodMiniAny;
|
179
|
+
export interface ZodMiniUnknown extends ZodMiniType {
|
180
|
+
_zod: core.$ZodUnknownInternals;
|
181
|
+
}
|
182
|
+
export declare const ZodMiniUnknown: core.$constructor<ZodMiniUnknown>;
|
183
|
+
export declare function unknown(): ZodMiniUnknown;
|
184
|
+
export interface ZodMiniNever extends ZodMiniType {
|
185
|
+
_zod: core.$ZodNeverInternals;
|
186
|
+
}
|
187
|
+
export declare const ZodMiniNever: core.$constructor<ZodMiniNever>;
|
188
|
+
export declare function never(params?: string | core.$ZodNeverParams): ZodMiniNever;
|
189
|
+
export interface ZodMiniVoid extends ZodMiniType {
|
190
|
+
_zod: core.$ZodVoidInternals;
|
191
|
+
}
|
192
|
+
export declare const ZodMiniVoid: core.$constructor<ZodMiniVoid>;
|
193
|
+
declare function _void(params?: string | core.$ZodVoidParams): ZodMiniVoid;
|
194
|
+
export { _void as void };
|
195
|
+
export interface ZodMiniDate<T = unknown> extends ZodMiniType {
|
196
|
+
_zod: core.$ZodDateInternals<T>;
|
197
|
+
}
|
198
|
+
export declare const ZodMiniDate: core.$constructor<ZodMiniDate>;
|
199
|
+
export declare function date(params?: string | core.$ZodDateParams): ZodMiniDate<Date>;
|
200
|
+
export interface ZodMiniArray<T extends SomeType = SomeType> extends ZodMiniType {
|
201
|
+
_zod: core.$ZodArrayInternals<T>;
|
202
|
+
}
|
203
|
+
export declare const ZodMiniArray: core.$constructor<ZodMiniArray>;
|
204
|
+
export declare function array<T extends SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray<T>;
|
205
|
+
export declare function keyof<T extends ZodMiniObject>(schema: T): ZodMiniLiteral<keyof T["shape"]>;
|
206
|
+
export interface ZodMiniObject<
|
207
|
+
/** @ts-ignore Cast variance */
|
208
|
+
out Shape extends core.$ZodShape = core.$ZodShape, out Config extends core.$ZodObjectConfig = core.$ZodObjectConfig> extends ZodMiniType {
|
209
|
+
_zod: core.$ZodObjectInternals<Shape, Config>;
|
210
|
+
shape: Shape;
|
211
|
+
}
|
212
|
+
export declare const ZodMiniObject: core.$constructor<ZodMiniObject>;
|
213
|
+
export declare function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(shape?: T, params?: string | core.$ZodObjectParams): ZodMiniObject<T, core.$strip>;
|
214
|
+
export declare function strictObject<T extends core.$ZodLooseShape>(shape: T, params?: string | core.$ZodObjectParams): ZodMiniObject<T, core.$strict>;
|
215
|
+
export declare function looseObject<T extends core.$ZodLooseShape>(shape: T, params?: string | core.$ZodObjectParams): ZodMiniObject<T, core.$loose>;
|
216
|
+
export declare function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(schema: T, shape: U): ZodMiniObject<util.Extend<T["shape"], U>, T["_zod"]["config"]>;
|
217
|
+
/** @deprecated Identical to `z.extend(A, B)` */
|
218
|
+
export declare function merge<T extends ZodMiniObject, U extends ZodMiniObject>(a: T, b: U): ZodMiniObject<util.Extend<T["shape"], U["shape"]>, T["_zod"]["config"]>;
|
219
|
+
export declare function pick<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(schema: T, mask: M): ZodMiniObject<util.Flatten<Pick<T["shape"], keyof T["shape"] & keyof M>>, T["_zod"]["config"]>;
|
220
|
+
export declare function omit<T extends ZodMiniObject, const M extends util.Mask<keyof T["shape"]>>(schema: T, mask: M): ZodMiniObject<util.Flatten<Omit<T["shape"], keyof M>>, T["_zod"]["config"]>;
|
221
|
+
export declare function partial<T extends ZodMiniObject>(schema: T): ZodMiniObject<{
|
222
|
+
[k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
|
223
|
+
}, T["_zod"]["config"]>;
|
224
|
+
export declare function partial<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(schema: T, mask: M): ZodMiniObject<{
|
225
|
+
[k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
|
226
|
+
}, T["_zod"]["config"]>;
|
227
|
+
export type RequiredInterfaceShape<Shape extends core.$ZodLooseShape, Keys extends PropertyKey = keyof Shape> = util.Identity<{
|
228
|
+
[k in keyof Shape as k extends Keys ? k : never]: ZodMiniNonOptional<Shape[k]>;
|
229
|
+
} & {
|
230
|
+
[k in keyof Shape as k extends Keys ? never : k]: Shape[k];
|
231
|
+
}>;
|
232
|
+
export declare function required<T extends ZodMiniObject>(schema: T): ZodMiniObject<{
|
233
|
+
[k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
|
234
|
+
}, T["_zod"]["config"]>;
|
235
|
+
export declare function required<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(schema: T, mask: M): ZodMiniObject<util.Extend<T["shape"], {
|
236
|
+
[k in keyof M & keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
|
237
|
+
}>, T["_zod"]["config"]>;
|
238
|
+
export interface ZodMiniUnion<T extends readonly SomeType[] = readonly SomeType[]> extends ZodMiniType {
|
239
|
+
_zod: core.$ZodUnionInternals<T>;
|
240
|
+
}
|
241
|
+
export declare const ZodMiniUnion: core.$constructor<ZodMiniUnion>;
|
242
|
+
export declare function union<const T extends readonly SomeType[]>(options: T, params?: string | core.$ZodUnionParams): ZodMiniUnion<T>;
|
243
|
+
export interface ZodMiniDiscriminatedUnion<Options extends readonly SomeType[] = readonly SomeType[]> extends ZodMiniUnion<Options> {
|
244
|
+
_zod: core.$ZodDiscriminatedUnionInternals<Options>;
|
245
|
+
}
|
246
|
+
export declare const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUnion>;
|
247
|
+
export interface $ZodTypeDiscriminableInternals extends core.$ZodTypeInternals {
|
248
|
+
disc: util.DiscriminatorMap;
|
249
|
+
}
|
250
|
+
export interface $ZodTypeDiscriminable extends ZodMiniType {
|
251
|
+
_zod: $ZodTypeDiscriminableInternals;
|
252
|
+
}
|
253
|
+
export declare function discriminatedUnion<Types extends readonly [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]]>(discriminator: string, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodMiniDiscriminatedUnion<Types>;
|
254
|
+
export interface ZodMiniIntersection<A extends SomeType = SomeType, B extends SomeType = SomeType> extends ZodMiniType {
|
255
|
+
_zod: core.$ZodIntersectionInternals<A, B>;
|
256
|
+
}
|
257
|
+
export declare const ZodMiniIntersection: core.$constructor<ZodMiniIntersection>;
|
258
|
+
export declare function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodMiniIntersection<T, U>;
|
259
|
+
export interface ZodMiniTuple<T extends util.TupleItems = util.TupleItems, Rest extends SomeType | null = SomeType | null> extends ZodMiniType {
|
260
|
+
_zod: core.$ZodTupleInternals<T, Rest>;
|
261
|
+
}
|
262
|
+
export declare const ZodMiniTuple: core.$constructor<ZodMiniTuple>;
|
263
|
+
export declare function tuple<T extends readonly [SomeType, ...SomeType[]]>(items: T, params?: string | core.$ZodTupleParams): ZodMiniTuple<T, null>;
|
264
|
+
export declare function tuple<T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(items: T, rest: Rest, params?: string | core.$ZodTupleParams): ZodMiniTuple<T, Rest>;
|
265
|
+
export declare function tuple(items: [], params?: string | core.$ZodTupleParams): ZodMiniTuple<[], null>;
|
266
|
+
export interface ZodMiniRecord<Key extends core.$ZodRecordKey = core.$ZodRecordKey, Value extends SomeType = SomeType> extends ZodMiniType {
|
267
|
+
_zod: core.$ZodRecordInternals<Key, Value>;
|
268
|
+
}
|
269
|
+
export declare const ZodMiniRecord: core.$constructor<ZodMiniRecord>;
|
270
|
+
export declare function record<Key extends core.$ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodMiniRecord<Key, Value>;
|
271
|
+
export declare function partialRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodMiniRecord<ZodMiniUnion<[Key, ZodMiniNever]>, Value>;
|
272
|
+
export interface ZodMiniMap<Key extends SomeType = SomeType, Value extends SomeType = SomeType> extends ZodMiniType {
|
273
|
+
_zod: core.$ZodMapInternals<Key, Value>;
|
274
|
+
}
|
275
|
+
export declare const ZodMiniMap: core.$constructor<ZodMiniMap>;
|
276
|
+
export declare function map<Key extends SomeType, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): ZodMiniMap<Key, Value>;
|
277
|
+
export interface ZodMiniSet<T extends SomeType = SomeType> extends ZodMiniType {
|
278
|
+
_zod: core.$ZodSetInternals<T>;
|
279
|
+
}
|
280
|
+
export declare const ZodMiniSet: core.$constructor<ZodMiniSet>;
|
281
|
+
export declare function set<Value extends SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodMiniSet<Value>;
|
282
|
+
export interface ZodMiniEnum<T extends util.EnumLike = util.EnumLike> extends ZodMiniType {
|
283
|
+
_zod: core.$ZodEnumInternals<T>;
|
284
|
+
}
|
285
|
+
export declare const ZodMiniEnum: core.$constructor<ZodMiniEnum>;
|
286
|
+
declare function _enum<const T extends readonly string[]>(values: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<util.ToEnum<T[number]>>;
|
287
|
+
declare function _enum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T>;
|
288
|
+
export { _enum as enum };
|
289
|
+
/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
|
290
|
+
*
|
291
|
+
* ```ts
|
292
|
+
* enum Colors { red, green, blue }
|
293
|
+
* z.enum(Colors);
|
294
|
+
* ```
|
295
|
+
*/
|
296
|
+
export declare function nativeEnum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T>;
|
297
|
+
export interface ZodMiniLiteral<T extends util.Primitive = util.Primitive> extends ZodMiniType {
|
298
|
+
_zod: core.$ZodLiteralInternals<T>;
|
299
|
+
}
|
300
|
+
export declare const ZodMiniLiteral: core.$constructor<ZodMiniLiteral>;
|
301
|
+
export declare function literal<const T extends Array<util.Literal>>(value: T, params?: string | core.$ZodLiteralParams): ZodMiniLiteral<T[number]>;
|
302
|
+
export declare function literal<const T extends util.Literal>(value: T, params?: string | core.$ZodLiteralParams): ZodMiniLiteral<T>;
|
303
|
+
export interface ZodMiniFile extends ZodMiniType {
|
304
|
+
_zod: core.$ZodFileInternals;
|
305
|
+
}
|
306
|
+
export declare const ZodMiniFile: core.$constructor<ZodMiniFile>;
|
307
|
+
export declare function file(params?: string | core.$ZodFileParams): ZodMiniFile;
|
308
|
+
export interface ZodMiniTransform<O = unknown, I = unknown> extends ZodMiniType {
|
309
|
+
_zod: core.$ZodTransformInternals<O, I>;
|
310
|
+
}
|
311
|
+
export declare const ZodMiniTransform: core.$constructor<ZodMiniTransform>;
|
312
|
+
export declare function transform<I = unknown, O = I>(fn: (input: I, ctx: core.ParsePayload) => O): ZodMiniTransform<Awaited<O>, I>;
|
313
|
+
export interface ZodMiniOptional<T extends SomeType = SomeType> extends ZodMiniType {
|
314
|
+
_zod: core.$ZodOptionalInternals<T>;
|
315
|
+
}
|
316
|
+
export declare const ZodMiniOptional: core.$constructor<ZodMiniOptional>;
|
317
|
+
export declare function optional<T extends SomeType>(innerType: T): ZodMiniOptional<T>;
|
318
|
+
export interface ZodMiniNullable<T extends SomeType = SomeType> extends ZodMiniType {
|
319
|
+
_zod: core.$ZodNullableInternals<T>;
|
320
|
+
}
|
321
|
+
export declare const ZodMiniNullable: core.$constructor<ZodMiniNullable>;
|
322
|
+
export declare function nullable<T extends SomeType>(innerType: T): ZodMiniNullable<T>;
|
323
|
+
export declare function nullish<T extends SomeType>(innerType: T): ZodMiniOptional<ZodMiniNullable<T>>;
|
324
|
+
export interface ZodMiniDefault<T extends SomeType = SomeType> extends ZodMiniType {
|
325
|
+
_zod: core.$ZodDefaultInternals<T>;
|
326
|
+
}
|
327
|
+
export declare const ZodMiniDefault: core.$constructor<ZodMiniDefault>;
|
328
|
+
export declare function _default<T extends SomeType>(innerType: T, defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)): ZodMiniDefault<T>;
|
329
|
+
export interface ZodMiniPrefault<T extends SomeType = SomeType> extends ZodMiniType {
|
330
|
+
_zod: core.$ZodPrefaultInternals<T>;
|
331
|
+
}
|
332
|
+
export declare const ZodMiniPrefault: core.$constructor<ZodMiniPrefault>;
|
333
|
+
export declare function prefault<T extends SomeType>(innerType: T, defaultValue: util.NoUndefined<core.input<T>> | (() => util.NoUndefined<core.input<T>>)): ZodMiniPrefault<T>;
|
334
|
+
export interface ZodMiniNonOptional<T extends SomeType = SomeType> extends ZodMiniType {
|
335
|
+
_zod: core.$ZodNonOptionalInternals<T>;
|
336
|
+
}
|
337
|
+
export declare const ZodMiniNonOptional: core.$constructor<ZodMiniNonOptional>;
|
338
|
+
export declare function nonoptional<T extends SomeType>(innerType: T, params?: string | core.$ZodNonOptionalParams): ZodMiniNonOptional<T>;
|
339
|
+
export interface ZodMiniSuccess<T extends SomeType = SomeType> extends ZodMiniType {
|
340
|
+
_zod: core.$ZodSuccessInternals<T>;
|
341
|
+
}
|
342
|
+
export declare const ZodMiniSuccess: core.$constructor<ZodMiniSuccess>;
|
343
|
+
export declare function success<T extends SomeType>(innerType: T): ZodMiniSuccess<T>;
|
344
|
+
export interface ZodMiniCatch<T extends SomeType = SomeType> extends ZodMiniType {
|
345
|
+
_zod: core.$ZodCatchInternals<T>;
|
346
|
+
}
|
347
|
+
export declare const ZodMiniCatch: core.$constructor<ZodMiniCatch>;
|
348
|
+
declare function _catch<T extends SomeType>(innerType: T, catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)): ZodMiniCatch<T>;
|
349
|
+
export { _catch as catch };
|
350
|
+
export interface ZodMiniNaN extends ZodMiniType {
|
351
|
+
_zod: core.$ZodNaNInternals;
|
352
|
+
}
|
353
|
+
export declare const ZodMiniNaN: core.$constructor<ZodMiniNaN>;
|
354
|
+
export declare function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN;
|
355
|
+
export interface ZodMiniPipe<A extends SomeType = SomeType, B extends SomeType = SomeType> extends ZodMiniType {
|
356
|
+
_zod: core.$ZodPipeInternals<A, B>;
|
357
|
+
}
|
358
|
+
export declare const ZodMiniPipe: core.$constructor<ZodMiniPipe>;
|
359
|
+
export declare function pipe<const A extends core.$ZodType, B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>, params?: string | core.$ZodPipeParams): ZodMiniPipe<A, B>;
|
360
|
+
export interface ZodMiniReadonly<T extends SomeType = SomeType> extends ZodMiniType {
|
361
|
+
_zod: core.$ZodReadonlyInternals<T>;
|
362
|
+
}
|
363
|
+
export declare const ZodMiniReadonly: core.$constructor<ZodMiniReadonly>;
|
364
|
+
export declare function readonly<T extends SomeType>(innerType: T): ZodMiniReadonly<T>;
|
365
|
+
export interface ZodMiniTemplateLiteral<Template extends string = string> extends ZodMiniType {
|
366
|
+
_zod: core.$ZodTemplateLiteralInternals<Template>;
|
367
|
+
}
|
368
|
+
export declare const ZodMiniTemplateLiteral: core.$constructor<ZodMiniTemplateLiteral>;
|
369
|
+
export declare function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(parts: Parts, params?: string | core.$ZodTemplateLiteralParams): ZodMiniTemplateLiteral<core.$PartsToTemplateLiteral<Parts>>;
|
370
|
+
export interface ZodMiniLazy<T extends SomeType = SomeType> extends ZodMiniType {
|
371
|
+
_zod: core.$ZodLazyInternals<T>;
|
372
|
+
}
|
373
|
+
export declare const ZodMiniLazy: core.$constructor<ZodMiniLazy>;
|
374
|
+
declare function _lazy<T extends SomeType>(getter: () => T): ZodMiniLazy<T>;
|
375
|
+
export { _lazy as lazy };
|
376
|
+
export interface ZodMiniPromise<T extends SomeType = SomeType> extends ZodMiniType {
|
377
|
+
_zod: core.$ZodPromiseInternals<T>;
|
378
|
+
}
|
379
|
+
export declare const ZodMiniPromise: core.$constructor<ZodMiniPromise>;
|
380
|
+
export declare function promise<T extends SomeType>(innerType: T): ZodMiniPromise<T>;
|
381
|
+
export interface ZodMiniCustom<O = unknown, I = unknown> extends ZodMiniType {
|
382
|
+
_zod: core.$ZodCustomInternals<O, I>;
|
383
|
+
}
|
384
|
+
export declare const ZodMiniCustom: core.$constructor<ZodMiniCustom>;
|
385
|
+
export declare function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O>;
|
386
|
+
export declare function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T>;
|
387
|
+
export declare function custom<O = unknown, I = O>(fn?: (data: O) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodMiniCustom<O, I>;
|
388
|
+
declare abstract class Class {
|
389
|
+
constructor(..._args: any[]);
|
390
|
+
}
|
391
|
+
declare function _instanceof<T extends typeof Class>(cls: T, params?: core.$ZodCustomParams): ZodMiniCustom<InstanceType<T>>;
|
392
|
+
export { _instanceof as instanceof };
|
393
|
+
export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniPipe<ZodMiniUnknown, ZodMiniBoolean<boolean>>;
|
394
|
+
export type ZodMiniJSONSchema = ZodMiniLazy<ZodMiniUnion<[
|
395
|
+
ZodMiniString<string>,
|
396
|
+
ZodMiniNumber<number>,
|
397
|
+
ZodMiniBoolean<boolean>,
|
398
|
+
ZodMiniNull,
|
399
|
+
ZodMiniArray<ZodMiniJSONSchema>,
|
400
|
+
ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>
|
401
|
+
]>> & {
|
402
|
+
_zod: {
|
403
|
+
input: util.JSONType;
|
404
|
+
output: util.JSONType;
|
405
|
+
};
|
406
|
+
};
|
407
|
+
export declare function json(): ZodMiniJSONSchema;
|