@rspack/core 1.0.0-alpha.4 → 1.0.0-beta.0
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/zod/index.d.ts +138 -52
- package/compiled/zod/index.js +300 -103
- package/compiled/zod/package.json +1 -1
- package/compiled/zod-validation-error/index.js +6 -6
- package/dist/Compilation.d.ts +21 -3
- package/dist/Compilation.js +64 -49
- package/dist/Compiler.js +28 -28
- package/dist/ErrorHelpers.js +2 -4
- package/dist/FileSystem.js +6 -6
- package/dist/Module.js +2 -6
- package/dist/ModuleTypeConstants.d.ts +45 -69
- package/dist/ModuleTypeConstants.js +24 -77
- package/dist/NormalModule.js +6 -6
- package/dist/Stats.js +4 -6
- package/dist/Template.d.ts +31 -147
- package/dist/Template.js +40 -236
- package/dist/Watching.js +2 -2
- package/dist/builtin-loader/lightningcss/index.d.ts +89 -0
- package/dist/builtin-loader/lightningcss/index.js +175 -0
- package/dist/builtin-plugin/BannerPlugin.d.ts +24 -48
- package/dist/builtin-plugin/DefinePlugin.js +9 -13
- package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +24 -0
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +8 -8
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +2 -2
- package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +10 -3
- package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.js +4 -1
- package/dist/builtin-plugin/SplitChunksPlugin.js +7 -17
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.js +15 -23
- package/dist/builtin-plugin/base.js +1 -3
- package/dist/builtin-plugin/css-extract/hmr/hotModuleReplacement.d.ts +3 -3
- package/dist/builtin-plugin/css-extract/hmr/hotModuleReplacement.js +17 -66
- package/dist/builtin-plugin/css-extract/hmr/normalizeUrl.d.ts +2 -0
- package/dist/builtin-plugin/css-extract/hmr/{normalize-url.js → normalizeUrl.js} +15 -24
- package/dist/builtin-plugin/css-extract/loader.js +6 -6
- package/dist/builtin-plugin/css-extract/utils.js +3 -3
- package/dist/builtin-plugin/lazy-compilation/backend.d.ts +3 -3
- package/dist/builtin-plugin/lazy-compilation/backend.js +1 -1
- package/dist/config/adapter.d.ts +1 -1
- package/dist/config/adapter.js +31 -30
- package/dist/config/adapterRuleUse.d.ts +5 -5
- package/dist/config/adapterRuleUse.js +23 -1
- package/dist/config/browserslistTargetHandler.d.ts +17 -15
- package/dist/config/browserslistTargetHandler.js +27 -33
- package/dist/config/defaults.js +27 -28
- package/dist/config/normalization.d.ts +2 -0
- package/dist/config/normalization.js +5 -5
- package/dist/config/target.d.ts +48 -109
- package/dist/config/target.js +50 -86
- package/dist/config/zod.d.ts +2398 -2212
- package/dist/config/zod.js +29 -19
- package/dist/container/ContainerPlugin.d.ts +7 -7
- package/dist/container/options.js +1 -1
- package/dist/exports.d.ts +4 -4
- package/dist/exports.js +2 -2
- package/dist/lib/CacheFacade.js +1 -0
- package/dist/lib/EntryOptionPlugin.js +2 -2
- package/dist/lib/ModuleFilenameHelpers.js +1 -3
- package/dist/lib/WebpackError.js +1 -1
- package/dist/lib/cache/mergeEtags.js +5 -11
- package/dist/lib/formatLocation.js +3 -5
- package/dist/loader-runner/LoaderLoadingError.d.ts +11 -1
- package/dist/loader-runner/LoaderLoadingError.js +3 -5
- package/dist/loader-runner/index.js +23 -25
- package/dist/loader-runner/loadLoader.d.ts +11 -2
- package/dist/loader-runner/loadLoader.js +18 -20
- package/dist/logging/createConsoleLogger.js +2 -6
- package/dist/logging/truncateArgs.js +5 -9
- package/dist/node/NodeWatchFileSystem.js +5 -5
- package/dist/node/nodeConsole.js +2 -4
- package/dist/rspack.js +6 -6
- package/dist/rspackOptionsApply.js +3 -3
- package/dist/stats/DefaultStatsFactoryPlugin.js +65 -20
- package/dist/stats/DefaultStatsPresetPlugin.js +4 -4
- package/dist/stats/DefaultStatsPrinterPlugin.js +12 -17
- package/dist/stats/StatsFactory.js +13 -17
- package/dist/stats/StatsPrinter.js +7 -9
- package/dist/stats/statsFactoryUtils.d.ts +9 -10
- package/dist/util/AssetInfo.js +11 -7
- package/dist/util/SplitChunkSize.js +1 -1
- package/dist/util/bindingVersionCheck.js +6 -6
- package/dist/util/cleverMerge.d.ts +33 -57
- package/dist/util/cleverMerge.js +89 -145
- package/dist/util/comparators.js +3 -5
- package/dist/util/createHash.d.ts +4 -3
- package/dist/util/createHash.js +31 -45
- package/dist/util/fs.js +16 -20
- package/dist/util/hash/BatchedHash.d.ts +24 -9
- package/dist/util/hash/BatchedHash.js +16 -13
- package/dist/util/hash/index.d.ts +9 -9
- package/dist/util/hash/index.js +14 -11
- package/dist/util/hash/md4.d.ts +29 -2
- package/dist/util/hash/md4.js +7 -3
- package/dist/util/hash/wasm-hash.d.ts +52 -5
- package/dist/util/hash/wasm-hash.js +19 -22
- package/dist/util/hash/xxhash64.d.ts +29 -2
- package/dist/util/hash/xxhash64.js +7 -3
- package/dist/util/identifier.js +13 -19
- package/dist/util/index.js +1 -1
- package/dist/util/memoize.js +7 -9
- package/package.json +9 -8
- package/dist/builtin-plugin/css-extract/hmr/normalize-url.d.ts +0 -2
package/compiled/zod/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare namespace util {
|
|
|
10
10
|
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
11
11
|
export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
|
|
12
12
|
export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
13
|
+
export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
|
|
13
14
|
export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
|
|
14
15
|
export const getValidEnumValues: (obj: any) => any[];
|
|
15
16
|
export const objectValues: (obj: any) => any[];
|
|
@@ -27,10 +28,19 @@ declare namespace objectUtil {
|
|
|
27
28
|
export type MergeShapes<U, V> = {
|
|
28
29
|
[k in Exclude<keyof U, keyof V>]: U[k];
|
|
29
30
|
} & V;
|
|
31
|
+
type optionalKeys<T extends object> = {
|
|
32
|
+
[k in keyof T]: undefined extends T[k] ? k : never;
|
|
33
|
+
}[keyof T];
|
|
30
34
|
type requiredKeys<T extends object> = {
|
|
31
35
|
[k in keyof T]: undefined extends T[k] ? never : k;
|
|
32
36
|
}[keyof T];
|
|
33
|
-
export type addQuestionMarks<T extends object,
|
|
37
|
+
export type addQuestionMarks<T extends object, _O = any> = {
|
|
38
|
+
[K in requiredKeys<T>]: T[K];
|
|
39
|
+
} & {
|
|
40
|
+
[K in optionalKeys<T>]?: T[K];
|
|
41
|
+
} & {
|
|
42
|
+
[k in keyof T]?: unknown;
|
|
43
|
+
};
|
|
34
44
|
export type identity<T> = T;
|
|
35
45
|
export type flatten<T> = identity<{
|
|
36
46
|
[k in keyof T]: T[k];
|
|
@@ -42,7 +52,11 @@ declare namespace objectUtil {
|
|
|
42
52
|
[k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;
|
|
43
53
|
}>;
|
|
44
54
|
export const mergeShapes: <U, T>(first: U, second: T) => T & U;
|
|
45
|
-
export type extendShape<A, B
|
|
55
|
+
export type extendShape<A extends object, B extends object> = {
|
|
56
|
+
[K in keyof A as K extends keyof B ? never : K]: A[K];
|
|
57
|
+
} & {
|
|
58
|
+
[K in keyof B]: B[K];
|
|
59
|
+
};
|
|
46
60
|
export { };
|
|
47
61
|
}
|
|
48
62
|
declare const ZodParsedType: {
|
|
@@ -139,7 +153,7 @@ interface ZodInvalidReturnTypeIssue extends ZodIssueBase {
|
|
|
139
153
|
interface ZodInvalidDateIssue extends ZodIssueBase {
|
|
140
154
|
code: typeof ZodIssueCode.invalid_date;
|
|
141
155
|
}
|
|
142
|
-
declare type StringValidation = "email" | "url" | "emoji" | "uuid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "ip" | {
|
|
156
|
+
declare type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "base64" | {
|
|
143
157
|
includes: string;
|
|
144
158
|
position?: number;
|
|
145
159
|
} | {
|
|
@@ -208,6 +222,7 @@ declare class ZodError<T = any> extends Error {
|
|
|
208
222
|
format(): ZodFormattedError<T>;
|
|
209
223
|
format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;
|
|
210
224
|
static create: (issues: ZodIssue[]) => ZodError<any>;
|
|
225
|
+
static assert(value: unknown): asserts value is ZodError;
|
|
211
226
|
toString(): string;
|
|
212
227
|
get message(): string;
|
|
213
228
|
get isEmpty(): boolean;
|
|
@@ -309,7 +324,7 @@ declare type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
|
|
|
309
324
|
declare type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
|
|
310
325
|
declare const isAborted: (x: ParseReturnType<any>) => x is INVALID;
|
|
311
326
|
declare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;
|
|
312
|
-
declare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T
|
|
327
|
+
declare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;
|
|
313
328
|
declare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;
|
|
314
329
|
|
|
315
330
|
declare namespace enumUtil {
|
|
@@ -339,10 +354,10 @@ declare namespace partialUtil {
|
|
|
339
354
|
} extends infer PI ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
|
|
340
355
|
}
|
|
341
356
|
|
|
342
|
-
|
|
357
|
+
interface RefinementCtx {
|
|
343
358
|
addIssue: (arg: IssueData) => void;
|
|
344
359
|
path: (string | number)[];
|
|
345
|
-
}
|
|
360
|
+
}
|
|
346
361
|
declare type ZodRawShape = {
|
|
347
362
|
[k: string]: ZodTypeAny;
|
|
348
363
|
};
|
|
@@ -360,6 +375,7 @@ declare type RawCreateParams = {
|
|
|
360
375
|
errorMap?: ZodErrorMap;
|
|
361
376
|
invalid_type_error?: string;
|
|
362
377
|
required_error?: string;
|
|
378
|
+
message?: string;
|
|
363
379
|
description?: string;
|
|
364
380
|
} | undefined;
|
|
365
381
|
declare type ProcessedCreateParams = {
|
|
@@ -369,10 +385,12 @@ declare type ProcessedCreateParams = {
|
|
|
369
385
|
declare type SafeParseSuccess<Output> = {
|
|
370
386
|
success: true;
|
|
371
387
|
data: Output;
|
|
388
|
+
error?: never;
|
|
372
389
|
};
|
|
373
390
|
declare type SafeParseError<Input> = {
|
|
374
391
|
success: false;
|
|
375
392
|
error: ZodError<Input>;
|
|
393
|
+
data?: never;
|
|
376
394
|
};
|
|
377
395
|
declare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;
|
|
378
396
|
declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
|
|
@@ -452,6 +470,9 @@ declare type ZodStringCheck = {
|
|
|
452
470
|
} | {
|
|
453
471
|
kind: "uuid";
|
|
454
472
|
message?: string;
|
|
473
|
+
} | {
|
|
474
|
+
kind: "nanoid";
|
|
475
|
+
message?: string;
|
|
455
476
|
} | {
|
|
456
477
|
kind: "cuid";
|
|
457
478
|
message?: string;
|
|
@@ -490,19 +511,38 @@ declare type ZodStringCheck = {
|
|
|
490
511
|
} | {
|
|
491
512
|
kind: "datetime";
|
|
492
513
|
offset: boolean;
|
|
514
|
+
local: boolean;
|
|
493
515
|
precision: number | null;
|
|
494
516
|
message?: string;
|
|
517
|
+
} | {
|
|
518
|
+
kind: "date";
|
|
519
|
+
message?: string;
|
|
520
|
+
} | {
|
|
521
|
+
kind: "time";
|
|
522
|
+
precision: number | null;
|
|
523
|
+
message?: string;
|
|
524
|
+
} | {
|
|
525
|
+
kind: "duration";
|
|
526
|
+
message?: string;
|
|
495
527
|
} | {
|
|
496
528
|
kind: "ip";
|
|
497
529
|
version?: IpVersion;
|
|
498
530
|
message?: string;
|
|
531
|
+
} | {
|
|
532
|
+
kind: "base64";
|
|
533
|
+
message?: string;
|
|
499
534
|
};
|
|
500
535
|
interface ZodStringDef extends ZodTypeDef {
|
|
501
536
|
checks: ZodStringCheck[];
|
|
502
537
|
typeName: ZodFirstPartyTypeKind.ZodString;
|
|
503
538
|
coerce: boolean;
|
|
504
539
|
}
|
|
505
|
-
declare
|
|
540
|
+
declare function datetimeRegex(args: {
|
|
541
|
+
precision?: number | null;
|
|
542
|
+
offset?: boolean;
|
|
543
|
+
local?: boolean;
|
|
544
|
+
}): RegExp;
|
|
545
|
+
declare class ZodString extends ZodType<string, ZodStringDef, string> {
|
|
506
546
|
_parse(input: ParseInput): ParseReturnType<string>;
|
|
507
547
|
protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
|
|
508
548
|
_addCheck(check: ZodStringCheck): ZodString;
|
|
@@ -510,9 +550,11 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
|
510
550
|
url(message?: errorUtil.ErrMessage): ZodString;
|
|
511
551
|
emoji(message?: errorUtil.ErrMessage): ZodString;
|
|
512
552
|
uuid(message?: errorUtil.ErrMessage): ZodString;
|
|
553
|
+
nanoid(message?: errorUtil.ErrMessage): ZodString;
|
|
513
554
|
cuid(message?: errorUtil.ErrMessage): ZodString;
|
|
514
555
|
cuid2(message?: errorUtil.ErrMessage): ZodString;
|
|
515
556
|
ulid(message?: errorUtil.ErrMessage): ZodString;
|
|
557
|
+
base64(message?: errorUtil.ErrMessage): ZodString;
|
|
516
558
|
ip(options?: string | {
|
|
517
559
|
version?: "v4" | "v6";
|
|
518
560
|
message?: string;
|
|
@@ -521,7 +563,14 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
|
521
563
|
message?: string | undefined;
|
|
522
564
|
precision?: number | null;
|
|
523
565
|
offset?: boolean;
|
|
566
|
+
local?: boolean;
|
|
567
|
+
}): ZodString;
|
|
568
|
+
date(message?: string): ZodString;
|
|
569
|
+
time(options?: string | {
|
|
570
|
+
message?: string | undefined;
|
|
571
|
+
precision?: number | null;
|
|
524
572
|
}): ZodString;
|
|
573
|
+
duration(message?: errorUtil.ErrMessage): ZodString;
|
|
525
574
|
regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString;
|
|
526
575
|
includes(value: string, options?: {
|
|
527
576
|
message?: string;
|
|
@@ -541,20 +590,26 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
|
541
590
|
toLowerCase(): ZodString;
|
|
542
591
|
toUpperCase(): ZodString;
|
|
543
592
|
get isDatetime(): boolean;
|
|
593
|
+
get isDate(): boolean;
|
|
594
|
+
get isTime(): boolean;
|
|
595
|
+
get isDuration(): boolean;
|
|
544
596
|
get isEmail(): boolean;
|
|
545
597
|
get isURL(): boolean;
|
|
546
598
|
get isEmoji(): boolean;
|
|
547
599
|
get isUUID(): boolean;
|
|
600
|
+
get isNANOID(): boolean;
|
|
548
601
|
get isCUID(): boolean;
|
|
549
602
|
get isCUID2(): boolean;
|
|
550
603
|
get isULID(): boolean;
|
|
551
604
|
get isIP(): boolean;
|
|
605
|
+
get isBase64(): boolean;
|
|
552
606
|
get minLength(): number | null;
|
|
553
607
|
get maxLength(): number | null;
|
|
554
608
|
static create: (params?: ({
|
|
555
609
|
errorMap?: ZodErrorMap | undefined;
|
|
556
610
|
invalid_type_error?: string | undefined;
|
|
557
611
|
required_error?: string | undefined;
|
|
612
|
+
message?: string | undefined;
|
|
558
613
|
description?: string | undefined;
|
|
559
614
|
} & {
|
|
560
615
|
coerce?: true | undefined;
|
|
@@ -586,12 +641,13 @@ interface ZodNumberDef extends ZodTypeDef {
|
|
|
586
641
|
typeName: ZodFirstPartyTypeKind.ZodNumber;
|
|
587
642
|
coerce: boolean;
|
|
588
643
|
}
|
|
589
|
-
declare class ZodNumber extends ZodType<number, ZodNumberDef> {
|
|
644
|
+
declare class ZodNumber extends ZodType<number, ZodNumberDef, number> {
|
|
590
645
|
_parse(input: ParseInput): ParseReturnType<number>;
|
|
591
646
|
static create: (params?: ({
|
|
592
647
|
errorMap?: ZodErrorMap | undefined;
|
|
593
648
|
invalid_type_error?: string | undefined;
|
|
594
649
|
required_error?: string | undefined;
|
|
650
|
+
message?: string | undefined;
|
|
595
651
|
description?: string | undefined;
|
|
596
652
|
} & {
|
|
597
653
|
coerce?: boolean | undefined;
|
|
@@ -638,12 +694,13 @@ interface ZodBigIntDef extends ZodTypeDef {
|
|
|
638
694
|
typeName: ZodFirstPartyTypeKind.ZodBigInt;
|
|
639
695
|
coerce: boolean;
|
|
640
696
|
}
|
|
641
|
-
declare class ZodBigInt extends ZodType<bigint, ZodBigIntDef> {
|
|
697
|
+
declare class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> {
|
|
642
698
|
_parse(input: ParseInput): ParseReturnType<bigint>;
|
|
643
699
|
static create: (params?: ({
|
|
644
700
|
errorMap?: ZodErrorMap | undefined;
|
|
645
701
|
invalid_type_error?: string | undefined;
|
|
646
702
|
required_error?: string | undefined;
|
|
703
|
+
message?: string | undefined;
|
|
647
704
|
description?: string | undefined;
|
|
648
705
|
} & {
|
|
649
706
|
coerce?: boolean | undefined;
|
|
@@ -668,12 +725,13 @@ interface ZodBooleanDef extends ZodTypeDef {
|
|
|
668
725
|
typeName: ZodFirstPartyTypeKind.ZodBoolean;
|
|
669
726
|
coerce: boolean;
|
|
670
727
|
}
|
|
671
|
-
declare class ZodBoolean extends ZodType<boolean, ZodBooleanDef> {
|
|
728
|
+
declare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> {
|
|
672
729
|
_parse(input: ParseInput): ParseReturnType<boolean>;
|
|
673
730
|
static create: (params?: ({
|
|
674
731
|
errorMap?: ZodErrorMap | undefined;
|
|
675
732
|
invalid_type_error?: string | undefined;
|
|
676
733
|
required_error?: string | undefined;
|
|
734
|
+
message?: string | undefined;
|
|
677
735
|
description?: string | undefined;
|
|
678
736
|
} & {
|
|
679
737
|
coerce?: boolean | undefined;
|
|
@@ -693,7 +751,7 @@ interface ZodDateDef extends ZodTypeDef {
|
|
|
693
751
|
coerce: boolean;
|
|
694
752
|
typeName: ZodFirstPartyTypeKind.ZodDate;
|
|
695
753
|
}
|
|
696
|
-
declare class ZodDate extends ZodType<Date, ZodDateDef> {
|
|
754
|
+
declare class ZodDate extends ZodType<Date, ZodDateDef, Date> {
|
|
697
755
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
698
756
|
_addCheck(check: ZodDateCheck): ZodDate;
|
|
699
757
|
min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;
|
|
@@ -704,6 +762,7 @@ declare class ZodDate extends ZodType<Date, ZodDateDef> {
|
|
|
704
762
|
errorMap?: ZodErrorMap | undefined;
|
|
705
763
|
invalid_type_error?: string | undefined;
|
|
706
764
|
required_error?: string | undefined;
|
|
765
|
+
message?: string | undefined;
|
|
707
766
|
description?: string | undefined;
|
|
708
767
|
} & {
|
|
709
768
|
coerce?: boolean | undefined;
|
|
@@ -719,7 +778,7 @@ declare class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> {
|
|
|
719
778
|
interface ZodUndefinedDef extends ZodTypeDef {
|
|
720
779
|
typeName: ZodFirstPartyTypeKind.ZodUndefined;
|
|
721
780
|
}
|
|
722
|
-
declare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef> {
|
|
781
|
+
declare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef, undefined> {
|
|
723
782
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
724
783
|
params?: RawCreateParams;
|
|
725
784
|
static create: (params?: RawCreateParams) => ZodUndefined;
|
|
@@ -727,14 +786,14 @@ declare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef> {
|
|
|
727
786
|
interface ZodNullDef extends ZodTypeDef {
|
|
728
787
|
typeName: ZodFirstPartyTypeKind.ZodNull;
|
|
729
788
|
}
|
|
730
|
-
declare class ZodNull extends ZodType<null, ZodNullDef> {
|
|
789
|
+
declare class ZodNull extends ZodType<null, ZodNullDef, null> {
|
|
731
790
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
732
791
|
static create: (params?: RawCreateParams) => ZodNull;
|
|
733
792
|
}
|
|
734
793
|
interface ZodAnyDef extends ZodTypeDef {
|
|
735
794
|
typeName: ZodFirstPartyTypeKind.ZodAny;
|
|
736
795
|
}
|
|
737
|
-
declare class ZodAny extends ZodType<any, ZodAnyDef> {
|
|
796
|
+
declare class ZodAny extends ZodType<any, ZodAnyDef, any> {
|
|
738
797
|
_any: true;
|
|
739
798
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
740
799
|
static create: (params?: RawCreateParams) => ZodAny;
|
|
@@ -742,7 +801,7 @@ declare class ZodAny extends ZodType<any, ZodAnyDef> {
|
|
|
742
801
|
interface ZodUnknownDef extends ZodTypeDef {
|
|
743
802
|
typeName: ZodFirstPartyTypeKind.ZodUnknown;
|
|
744
803
|
}
|
|
745
|
-
declare class ZodUnknown extends ZodType<unknown, ZodUnknownDef> {
|
|
804
|
+
declare class ZodUnknown extends ZodType<unknown, ZodUnknownDef, unknown> {
|
|
746
805
|
_unknown: true;
|
|
747
806
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
748
807
|
static create: (params?: RawCreateParams) => ZodUnknown;
|
|
@@ -750,14 +809,14 @@ declare class ZodUnknown extends ZodType<unknown, ZodUnknownDef> {
|
|
|
750
809
|
interface ZodNeverDef extends ZodTypeDef {
|
|
751
810
|
typeName: ZodFirstPartyTypeKind.ZodNever;
|
|
752
811
|
}
|
|
753
|
-
declare class ZodNever extends ZodType<never, ZodNeverDef> {
|
|
812
|
+
declare class ZodNever extends ZodType<never, ZodNeverDef, never> {
|
|
754
813
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
755
814
|
static create: (params?: RawCreateParams) => ZodNever;
|
|
756
815
|
}
|
|
757
816
|
interface ZodVoidDef extends ZodTypeDef {
|
|
758
817
|
typeName: ZodFirstPartyTypeKind.ZodVoid;
|
|
759
818
|
}
|
|
760
|
-
declare class ZodVoid extends ZodType<void, ZodVoidDef> {
|
|
819
|
+
declare class ZodVoid extends ZodType<void, ZodVoidDef, void> {
|
|
761
820
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
762
821
|
static create: (params?: RawCreateParams) => ZodVoid;
|
|
763
822
|
}
|
|
@@ -807,10 +866,10 @@ declare type objectInputType<Shape extends ZodRawShape, Catchall extends ZodType
|
|
|
807
866
|
declare type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{
|
|
808
867
|
[k in keyof Shape]: Shape[k]["_input"];
|
|
809
868
|
}>;
|
|
810
|
-
declare type CatchallOutput<T extends
|
|
869
|
+
declare type CatchallOutput<T extends ZodType> = ZodType extends T ? unknown : {
|
|
811
870
|
[k: string]: T["_output"];
|
|
812
871
|
};
|
|
813
|
-
declare type CatchallInput<T extends
|
|
872
|
+
declare type CatchallInput<T extends ZodType> = ZodType extends T ? unknown : {
|
|
814
873
|
[k: string]: T["_input"];
|
|
815
874
|
};
|
|
816
875
|
declare type PassthroughType<T extends UnknownKeysParam> = T extends "passthrough" ? {
|
|
@@ -841,7 +900,7 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
841
900
|
/**
|
|
842
901
|
* @deprecated Use `.extend` instead
|
|
843
902
|
* */
|
|
844
|
-
augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<
|
|
903
|
+
augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall, objectOutputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>, objectInputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>>;
|
|
845
904
|
/**
|
|
846
905
|
* Prior to zod@1.0.12 there was a bug in the
|
|
847
906
|
* inferred type of merged objects. Please
|
|
@@ -852,12 +911,12 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
852
911
|
[k in Key]: Schema;
|
|
853
912
|
}, UnknownKeys, Catchall>;
|
|
854
913
|
catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;
|
|
855
|
-
pick<Mask extends {
|
|
914
|
+
pick<Mask extends util.Exactly<{
|
|
856
915
|
[k in keyof T]?: true;
|
|
857
|
-
}
|
|
858
|
-
omit<Mask extends {
|
|
916
|
+
}, Mask>>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
|
|
917
|
+
omit<Mask extends util.Exactly<{
|
|
859
918
|
[k in keyof T]?: true;
|
|
860
|
-
}
|
|
919
|
+
}, Mask>>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
|
|
861
920
|
/**
|
|
862
921
|
* @deprecated
|
|
863
922
|
*/
|
|
@@ -865,23 +924,23 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
865
924
|
partial(): ZodObject<{
|
|
866
925
|
[k in keyof T]: ZodOptional<T[k]>;
|
|
867
926
|
}, UnknownKeys, Catchall>;
|
|
868
|
-
partial<Mask extends {
|
|
927
|
+
partial<Mask extends util.Exactly<{
|
|
869
928
|
[k in keyof T]?: true;
|
|
870
|
-
}
|
|
929
|
+
}, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{
|
|
871
930
|
[k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k];
|
|
872
931
|
}>, UnknownKeys, Catchall>;
|
|
873
932
|
required(): ZodObject<{
|
|
874
933
|
[k in keyof T]: deoptional<T[k]>;
|
|
875
934
|
}, UnknownKeys, Catchall>;
|
|
876
|
-
required<Mask extends {
|
|
935
|
+
required<Mask extends util.Exactly<{
|
|
877
936
|
[k in keyof T]?: true;
|
|
878
|
-
}
|
|
937
|
+
}, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{
|
|
879
938
|
[k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];
|
|
880
939
|
}>, UnknownKeys, Catchall>;
|
|
881
940
|
keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
|
|
882
|
-
static create: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [
|
|
883
|
-
static strictCreate: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strict", ZodTypeAny, { [
|
|
884
|
-
static lazycreate: <T_1 extends ZodRawShape>(shape: () => T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [
|
|
941
|
+
static create: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; }, { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1]; }>;
|
|
942
|
+
static strictCreate: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strict", ZodTypeAny, { [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; }, { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1]; }>;
|
|
943
|
+
static lazycreate: <T_1 extends ZodRawShape>(shape: () => T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; }, { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1]; }>;
|
|
885
944
|
}
|
|
886
945
|
declare type AnyZodObject = ZodObject<any, any, any>;
|
|
887
946
|
declare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
|
|
@@ -937,11 +996,11 @@ declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extend
|
|
|
937
996
|
declare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
|
|
938
997
|
declare type AssertArray<T> = T extends any[] ? T : never;
|
|
939
998
|
declare type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{
|
|
940
|
-
[k in keyof T]: T[k] extends ZodType<any, any> ? T[k]["_output"] : never;
|
|
999
|
+
[k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_output"] : never;
|
|
941
1000
|
}>;
|
|
942
1001
|
declare type OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest["_output"][]] : OutputTypeOfTuple<T>;
|
|
943
1002
|
declare type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{
|
|
944
|
-
[k in keyof T]: T[k] extends ZodType<any, any> ? T[k]["_input"] : never;
|
|
1003
|
+
[k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_input"] : never;
|
|
945
1004
|
}>;
|
|
946
1005
|
declare type InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest["_input"][]] : InputTypeOfTuple<T>;
|
|
947
1006
|
interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodTypeDef {
|
|
@@ -1019,7 +1078,7 @@ declare class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTy
|
|
|
1019
1078
|
parameters(): Args;
|
|
1020
1079
|
returnType(): Returns;
|
|
1021
1080
|
args<Items extends Parameters<(typeof ZodTuple)["create"]>[0]>(...items: Items): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>;
|
|
1022
|
-
returns<NewReturnType extends ZodType<any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;
|
|
1081
|
+
returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;
|
|
1023
1082
|
implement<F extends InnerTypeOfFunction<Args, Returns>>(func: F): ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>;
|
|
1024
1083
|
strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns>;
|
|
1025
1084
|
validate: <F extends InnerTypeOfFunction<Args, Returns>>(func: F) => ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>;
|
|
@@ -1041,14 +1100,14 @@ interface ZodLiteralDef<T = any> extends ZodTypeDef {
|
|
|
1041
1100
|
value: T;
|
|
1042
1101
|
typeName: ZodFirstPartyTypeKind.ZodLiteral;
|
|
1043
1102
|
}
|
|
1044
|
-
declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T
|
|
1103
|
+
declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {
|
|
1045
1104
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1046
1105
|
get value(): T;
|
|
1047
1106
|
static create: <T_1 extends Primitive>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;
|
|
1048
1107
|
}
|
|
1049
1108
|
declare type ArrayKeys = keyof any[];
|
|
1050
1109
|
declare type Indices<T> = Exclude<keyof T, ArrayKeys>;
|
|
1051
|
-
declare type EnumValues = [
|
|
1110
|
+
declare type EnumValues<T extends string = string> = readonly [T, ...T[]];
|
|
1052
1111
|
declare type Values<T extends EnumValues> = {
|
|
1053
1112
|
[k in T[number]]: k;
|
|
1054
1113
|
};
|
|
@@ -1063,14 +1122,15 @@ declare type FilterEnum<Values, ToExclude> = Values extends [] ? [] : Values ext
|
|
|
1063
1122
|
declare type typecast<A, T> = A extends T ? A : never;
|
|
1064
1123
|
declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
|
|
1065
1124
|
declare function createZodEnum<U extends string, T extends [U, ...U[]]>(values: T, params?: RawCreateParams): ZodEnum<T>;
|
|
1066
|
-
declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T
|
|
1125
|
+
declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {
|
|
1126
|
+
#private;
|
|
1067
1127
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1068
1128
|
get options(): T;
|
|
1069
1129
|
get enum(): Values<T>;
|
|
1070
1130
|
get Values(): Values<T>;
|
|
1071
1131
|
get Enum(): Values<T>;
|
|
1072
|
-
extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract): ZodEnum<Writeable<ToExtract>>;
|
|
1073
|
-
exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;
|
|
1132
|
+
extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract, newDef?: RawCreateParams): ZodEnum<Writeable<ToExtract>>;
|
|
1133
|
+
exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude, newDef?: RawCreateParams): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;
|
|
1074
1134
|
static create: typeof createZodEnum;
|
|
1075
1135
|
}
|
|
1076
1136
|
interface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef {
|
|
@@ -1081,7 +1141,8 @@ declare type EnumLike = {
|
|
|
1081
1141
|
[k: string]: string | number;
|
|
1082
1142
|
[nu: number]: string;
|
|
1083
1143
|
};
|
|
1084
|
-
declare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T
|
|
1144
|
+
declare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>, T[keyof T]> {
|
|
1145
|
+
#private;
|
|
1085
1146
|
_parse(input: ParseInput): ParseReturnType<T[keyof T]>;
|
|
1086
1147
|
get enum(): T;
|
|
1087
1148
|
static create: <T_1 extends EnumLike>(values: T_1, params?: RawCreateParams) => ZodNativeEnum<T_1>;
|
|
@@ -1155,6 +1216,7 @@ declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<
|
|
|
1155
1216
|
errorMap?: ZodErrorMap | undefined;
|
|
1156
1217
|
invalid_type_error?: string | undefined;
|
|
1157
1218
|
required_error?: string | undefined;
|
|
1219
|
+
message?: string | undefined;
|
|
1158
1220
|
description?: string | undefined;
|
|
1159
1221
|
} & {
|
|
1160
1222
|
default: T_1["_input"] | (() => util.noUndefined<T_1["_input"]>);
|
|
@@ -1175,6 +1237,7 @@ declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCa
|
|
|
1175
1237
|
errorMap?: ZodErrorMap | undefined;
|
|
1176
1238
|
invalid_type_error?: string | undefined;
|
|
1177
1239
|
required_error?: string | undefined;
|
|
1240
|
+
message?: string | undefined;
|
|
1178
1241
|
description?: string | undefined;
|
|
1179
1242
|
} & {
|
|
1180
1243
|
catch: T_1["_output"] | (() => T_1["_output"]);
|
|
@@ -1183,7 +1246,7 @@ declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCa
|
|
|
1183
1246
|
interface ZodNaNDef extends ZodTypeDef {
|
|
1184
1247
|
typeName: ZodFirstPartyTypeKind.ZodNaN;
|
|
1185
1248
|
}
|
|
1186
|
-
declare class ZodNaN extends ZodType<number, ZodNaNDef> {
|
|
1249
|
+
declare class ZodNaN extends ZodType<number, ZodNaNDef, number> {
|
|
1187
1250
|
_parse(input: ParseInput): ParseReturnType<any>;
|
|
1188
1251
|
static create: (params?: RawCreateParams) => ZodNaN;
|
|
1189
1252
|
}
|
|
@@ -1218,17 +1281,29 @@ interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
1218
1281
|
innerType: T;
|
|
1219
1282
|
typeName: ZodFirstPartyTypeKind.ZodReadonly;
|
|
1220
1283
|
}
|
|
1221
|
-
declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, T["_input"]
|
|
1284
|
+
declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, MakeReadonly<T["_input"]>> {
|
|
1222
1285
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1223
1286
|
static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;
|
|
1287
|
+
unwrap(): T;
|
|
1224
1288
|
}
|
|
1225
1289
|
declare type CustomParams = CustomErrorParams & {
|
|
1226
1290
|
fatal?: boolean;
|
|
1227
1291
|
};
|
|
1228
|
-
declare
|
|
1292
|
+
declare function custom<T>(check?: (data: any) => any, params?: string | CustomParams | ((input: any) => CustomParams),
|
|
1293
|
+
/**
|
|
1294
|
+
* @deprecated
|
|
1295
|
+
*
|
|
1296
|
+
* Pass `fatal` into the params object instead:
|
|
1297
|
+
*
|
|
1298
|
+
* ```ts
|
|
1299
|
+
* z.string().custom((val) => val.length > 5, { fatal: false })
|
|
1300
|
+
* ```
|
|
1301
|
+
*
|
|
1302
|
+
*/
|
|
1303
|
+
fatal?: boolean): ZodType<T, ZodTypeDef, T>;
|
|
1229
1304
|
|
|
1230
1305
|
declare const late: {
|
|
1231
|
-
object: <T extends ZodRawShape>(shape: () => T, params?: RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, { [
|
|
1306
|
+
object: <T extends ZodRawShape>(shape: () => T, params?: RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, { [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>[k]; }, { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1]; }>;
|
|
1232
1307
|
};
|
|
1233
1308
|
declare enum ZodFirstPartyTypeKind {
|
|
1234
1309
|
ZodString = "ZodString",
|
|
@@ -1268,7 +1343,7 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1268
1343
|
ZodPipeline = "ZodPipeline",
|
|
1269
1344
|
ZodReadonly = "ZodReadonly"
|
|
1270
1345
|
}
|
|
1271
|
-
declare type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodNaN | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray<any, any> | ZodObject<any, any, any> | ZodUnion<any> | ZodDiscriminatedUnion<any, any> | ZodIntersection<any, any> | ZodTuple<any, any> | ZodRecord<any, any> | ZodMap<any> | ZodSet<any> | ZodFunction<any, any> | ZodLazy<any> | ZodLiteral<any> | ZodEnum<any> | ZodEffects<any, any, any> | ZodNativeEnum<any> | ZodOptional<any> | ZodNullable<any> | ZodDefault<any> | ZodCatch<any> | ZodPromise<any> | ZodBranded<any, any> | ZodPipeline<any, any
|
|
1346
|
+
declare type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodNaN | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray<any, any> | ZodObject<any, any, any> | ZodUnion<any> | ZodDiscriminatedUnion<any, any> | ZodIntersection<any, any> | ZodTuple<any, any> | ZodRecord<any, any> | ZodMap<any> | ZodSet<any> | ZodFunction<any, any> | ZodLazy<any> | ZodLiteral<any> | ZodEnum<any> | ZodEffects<any, any, any> | ZodNativeEnum<any> | ZodOptional<any> | ZodNullable<any> | ZodDefault<any> | ZodCatch<any> | ZodPromise<any> | ZodBranded<any, any> | ZodPipeline<any, any> | ZodReadonly<any> | ZodSymbol;
|
|
1272
1347
|
declare abstract class Class {
|
|
1273
1348
|
constructor(..._: any[]);
|
|
1274
1349
|
}
|
|
@@ -1277,6 +1352,7 @@ declare const stringType: (params?: ({
|
|
|
1277
1352
|
errorMap?: ZodErrorMap | undefined;
|
|
1278
1353
|
invalid_type_error?: string | undefined;
|
|
1279
1354
|
required_error?: string | undefined;
|
|
1355
|
+
message?: string | undefined;
|
|
1280
1356
|
description?: string | undefined;
|
|
1281
1357
|
} & {
|
|
1282
1358
|
coerce?: true | undefined;
|
|
@@ -1285,6 +1361,7 @@ declare const numberType: (params?: ({
|
|
|
1285
1361
|
errorMap?: ZodErrorMap | undefined;
|
|
1286
1362
|
invalid_type_error?: string | undefined;
|
|
1287
1363
|
required_error?: string | undefined;
|
|
1364
|
+
message?: string | undefined;
|
|
1288
1365
|
description?: string | undefined;
|
|
1289
1366
|
} & {
|
|
1290
1367
|
coerce?: boolean | undefined;
|
|
@@ -1294,6 +1371,7 @@ declare const bigIntType: (params?: ({
|
|
|
1294
1371
|
errorMap?: ZodErrorMap | undefined;
|
|
1295
1372
|
invalid_type_error?: string | undefined;
|
|
1296
1373
|
required_error?: string | undefined;
|
|
1374
|
+
message?: string | undefined;
|
|
1297
1375
|
description?: string | undefined;
|
|
1298
1376
|
} & {
|
|
1299
1377
|
coerce?: boolean | undefined;
|
|
@@ -1302,6 +1380,7 @@ declare const booleanType: (params?: ({
|
|
|
1302
1380
|
errorMap?: ZodErrorMap | undefined;
|
|
1303
1381
|
invalid_type_error?: string | undefined;
|
|
1304
1382
|
required_error?: string | undefined;
|
|
1383
|
+
message?: string | undefined;
|
|
1305
1384
|
description?: string | undefined;
|
|
1306
1385
|
} & {
|
|
1307
1386
|
coerce?: boolean | undefined;
|
|
@@ -1310,6 +1389,7 @@ declare const dateType: (params?: ({
|
|
|
1310
1389
|
errorMap?: ZodErrorMap | undefined;
|
|
1311
1390
|
invalid_type_error?: string | undefined;
|
|
1312
1391
|
required_error?: string | undefined;
|
|
1392
|
+
message?: string | undefined;
|
|
1313
1393
|
description?: string | undefined;
|
|
1314
1394
|
} & {
|
|
1315
1395
|
coerce?: boolean | undefined;
|
|
@@ -1322,8 +1402,8 @@ declare const unknownType: (params?: RawCreateParams) => ZodUnknown;
|
|
|
1322
1402
|
declare const neverType: (params?: RawCreateParams) => ZodNever;
|
|
1323
1403
|
declare const voidType: (params?: RawCreateParams) => ZodVoid;
|
|
1324
1404
|
declare const arrayType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T, "many">;
|
|
1325
|
-
declare const objectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, { [
|
|
1326
|
-
declare const strictObjectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strict", ZodTypeAny, { [
|
|
1405
|
+
declare const objectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strip", ZodTypeAny, { [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>[k]; }, { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1]; }>;
|
|
1406
|
+
declare const strictObjectType: <T extends ZodRawShape>(shape: T, params?: RawCreateParams) => ZodObject<T, "strict", ZodTypeAny, { [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>[k]; }, { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1]; }>;
|
|
1327
1407
|
declare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T, params?: RawCreateParams) => ZodUnion<T>;
|
|
1328
1408
|
declare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;
|
|
1329
1409
|
declare const intersectionType: <T extends ZodTypeAny, U extends ZodTypeAny>(left: T, right: U, params?: RawCreateParams) => ZodIntersection<T, U>;
|
|
@@ -1350,6 +1430,7 @@ declare const coerce: {
|
|
|
1350
1430
|
errorMap?: ZodErrorMap | undefined;
|
|
1351
1431
|
invalid_type_error?: string | undefined;
|
|
1352
1432
|
required_error?: string | undefined;
|
|
1433
|
+
message?: string | undefined;
|
|
1353
1434
|
description?: string | undefined;
|
|
1354
1435
|
} & {
|
|
1355
1436
|
coerce?: true | undefined;
|
|
@@ -1358,6 +1439,7 @@ declare const coerce: {
|
|
|
1358
1439
|
errorMap?: ZodErrorMap | undefined;
|
|
1359
1440
|
invalid_type_error?: string | undefined;
|
|
1360
1441
|
required_error?: string | undefined;
|
|
1442
|
+
message?: string | undefined;
|
|
1361
1443
|
description?: string | undefined;
|
|
1362
1444
|
} & {
|
|
1363
1445
|
coerce?: boolean | undefined;
|
|
@@ -1366,6 +1448,7 @@ declare const coerce: {
|
|
|
1366
1448
|
errorMap?: ZodErrorMap | undefined;
|
|
1367
1449
|
invalid_type_error?: string | undefined;
|
|
1368
1450
|
required_error?: string | undefined;
|
|
1451
|
+
message?: string | undefined;
|
|
1369
1452
|
description?: string | undefined;
|
|
1370
1453
|
} & {
|
|
1371
1454
|
coerce?: boolean | undefined;
|
|
@@ -1374,6 +1457,7 @@ declare const coerce: {
|
|
|
1374
1457
|
errorMap?: ZodErrorMap | undefined;
|
|
1375
1458
|
invalid_type_error?: string | undefined;
|
|
1376
1459
|
required_error?: string | undefined;
|
|
1460
|
+
message?: string | undefined;
|
|
1377
1461
|
description?: string | undefined;
|
|
1378
1462
|
} & {
|
|
1379
1463
|
coerce?: boolean | undefined;
|
|
@@ -1382,6 +1466,7 @@ declare const coerce: {
|
|
|
1382
1466
|
errorMap?: ZodErrorMap | undefined;
|
|
1383
1467
|
invalid_type_error?: string | undefined;
|
|
1384
1468
|
required_error?: string | undefined;
|
|
1469
|
+
message?: string | undefined;
|
|
1385
1470
|
description?: string | undefined;
|
|
1386
1471
|
} & {
|
|
1387
1472
|
coerce?: boolean | undefined;
|
|
@@ -1397,15 +1482,15 @@ type z_ArrayKeys = ArrayKeys;
|
|
|
1397
1482
|
type z_AssertArray<T> = AssertArray<T>;
|
|
1398
1483
|
type z_AsyncParseReturnType<T> = AsyncParseReturnType<T>;
|
|
1399
1484
|
type z_BRAND<T extends string | number | symbol> = BRAND<T>;
|
|
1400
|
-
type z_CatchallInput<T extends
|
|
1401
|
-
type z_CatchallOutput<T extends
|
|
1485
|
+
type z_CatchallInput<T extends ZodType> = CatchallInput<T>;
|
|
1486
|
+
type z_CatchallOutput<T extends ZodType> = CatchallOutput<T>;
|
|
1402
1487
|
type z_CustomErrorParams = CustomErrorParams;
|
|
1403
1488
|
declare const z_DIRTY: typeof DIRTY;
|
|
1404
1489
|
type z_DenormalizedError = DenormalizedError;
|
|
1405
1490
|
declare const z_EMPTY_PATH: typeof EMPTY_PATH;
|
|
1406
1491
|
type z_Effect<T> = Effect<T>;
|
|
1407
1492
|
type z_EnumLike = EnumLike;
|
|
1408
|
-
type z_EnumValues = EnumValues
|
|
1493
|
+
type z_EnumValues<T extends string = string> = EnumValues<T>;
|
|
1409
1494
|
type z_ErrorMapCtx = ErrorMapCtx;
|
|
1410
1495
|
type z_FilterEnum<Values, ToExclude> = FilterEnum<Values, ToExclude>;
|
|
1411
1496
|
declare const z_INVALID: typeof INVALID;
|
|
@@ -1614,6 +1699,7 @@ type z_baseObjectInputType<Shape extends ZodRawShape> = baseObjectInputType<Shap
|
|
|
1614
1699
|
type z_baseObjectOutputType<Shape extends ZodRawShape> = baseObjectOutputType<Shape>;
|
|
1615
1700
|
declare const z_coerce: typeof coerce;
|
|
1616
1701
|
declare const z_custom: typeof custom;
|
|
1702
|
+
declare const z_datetimeRegex: typeof datetimeRegex;
|
|
1617
1703
|
type z_deoptional<T extends ZodTypeAny> = deoptional<T>;
|
|
1618
1704
|
declare const z_getErrorMap: typeof getErrorMap;
|
|
1619
1705
|
declare const z_getParsedType: typeof getParsedType;
|
|
@@ -1641,7 +1727,7 @@ type z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;
|
|
|
1641
1727
|
type z_typecast<A, T> = typecast<A, T>;
|
|
1642
1728
|
declare const z_util: typeof util;
|
|
1643
1729
|
declare namespace z {
|
|
1644
|
-
export { type z_AnyZodObject as AnyZodObject, type z_AnyZodTuple as AnyZodTuple, type z_ArrayCardinality as ArrayCardinality, type z_ArrayKeys as ArrayKeys, type z_AssertArray as AssertArray, type z_AsyncParseReturnType as AsyncParseReturnType, type z_BRAND as BRAND, type z_CatchallInput as CatchallInput, type z_CatchallOutput as CatchallOutput, type z_CustomErrorParams as CustomErrorParams, z_DIRTY as DIRTY, type z_DenormalizedError as DenormalizedError, z_EMPTY_PATH as EMPTY_PATH, type z_Effect as Effect, type z_EnumLike as EnumLike, type z_EnumValues as EnumValues, type z_ErrorMapCtx as ErrorMapCtx, type z_FilterEnum as FilterEnum, z_INVALID as INVALID, type z_Indices as Indices, type z_InnerTypeOfFunction as InnerTypeOfFunction, type z_InputTypeOfTuple as InputTypeOfTuple, type z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest, type z_IpVersion as IpVersion, type z_IssueData as IssueData, type z_KeySchema as KeySchema, z_NEVER as NEVER, z_OK as OK, type z_ObjectPair as ObjectPair, type z_OuterTypeOfFunction as OuterTypeOfFunction, type z_OutputTypeOfTuple as OutputTypeOfTuple, type z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest, type z_ParseContext as ParseContext, type z_ParseInput as ParseInput, type z_ParseParams as ParseParams, type z_ParsePath as ParsePath, type z_ParsePathComponent as ParsePathComponent, type z_ParseResult as ParseResult, type z_ParseReturnType as ParseReturnType, z_ParseStatus as ParseStatus, type z_PassthroughType as PassthroughType, type z_PreprocessEffect as PreprocessEffect, type z_Primitive as Primitive, type z_ProcessedCreateParams as ProcessedCreateParams, type z_RawCreateParams as RawCreateParams, type z_RecordType as RecordType, type z_Refinement as Refinement, type z_RefinementCtx as RefinementCtx, type z_RefinementEffect as RefinementEffect, type z_SafeParseError as SafeParseError, type z_SafeParseReturnType as SafeParseReturnType, type z_SafeParseSuccess as SafeParseSuccess, type z_Scalars as Scalars, ZodType as Schema, type z_SomeZodObject as SomeZodObject, type z_StringValidation as StringValidation, type z_SuperRefinement as SuperRefinement, type z_SyncParseReturnType as SyncParseReturnType, type z_TransformEffect as TransformEffect, type z_TypeOf as TypeOf, type z_UnknownKeysParam as UnknownKeysParam, type z_Values as Values, type z_Writeable as Writeable, z_ZodAny as ZodAny, type z_ZodAnyDef as ZodAnyDef, z_ZodArray as ZodArray, type z_ZodArrayDef as ZodArrayDef, z_ZodBigInt as ZodBigInt, type z_ZodBigIntCheck as ZodBigIntCheck, type z_ZodBigIntDef as ZodBigIntDef, z_ZodBoolean as ZodBoolean, type z_ZodBooleanDef as ZodBooleanDef, z_ZodBranded as ZodBranded, type z_ZodBrandedDef as ZodBrandedDef, z_ZodCatch as ZodCatch, type z_ZodCatchDef as ZodCatchDef, type z_ZodCustomIssue as ZodCustomIssue, z_ZodDate as ZodDate, type z_ZodDateCheck as ZodDateCheck, type z_ZodDateDef as ZodDateDef, z_ZodDefault as ZodDefault, type z_ZodDefaultDef as ZodDefaultDef, z_ZodDiscriminatedUnion as ZodDiscriminatedUnion, type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, z_ZodEffects as ZodEffects, type z_ZodEffectsDef as ZodEffectsDef, z_ZodEnum as ZodEnum, type z_ZodEnumDef as ZodEnumDef, z_ZodError as ZodError, type z_ZodErrorMap as ZodErrorMap, type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind, type z_ZodFormattedError as ZodFormattedError, z_ZodFunction as ZodFunction, type z_ZodFunctionDef as ZodFunctionDef, z_ZodIntersection as ZodIntersection, type z_ZodIntersectionDef as ZodIntersectionDef, type z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue, type z_ZodInvalidDateIssue as ZodInvalidDateIssue, type z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue, type z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue, type z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue, type z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue, type z_ZodInvalidStringIssue as ZodInvalidStringIssue, type z_ZodInvalidTypeIssue as ZodInvalidTypeIssue, type z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue, type z_ZodInvalidUnionIssue as ZodInvalidUnionIssue, type z_ZodIssue as ZodIssue, type z_ZodIssueBase as ZodIssueBase, type z_ZodIssueCode as ZodIssueCode, type z_ZodIssueOptionalMessage as ZodIssueOptionalMessage, z_ZodLazy as ZodLazy, type z_ZodLazyDef as ZodLazyDef, z_ZodLiteral as ZodLiteral, type z_ZodLiteralDef as ZodLiteralDef, z_ZodMap as ZodMap, type z_ZodMapDef as ZodMapDef, z_ZodNaN as ZodNaN, type z_ZodNaNDef as ZodNaNDef, z_ZodNativeEnum as ZodNativeEnum, type z_ZodNativeEnumDef as ZodNativeEnumDef, z_ZodNever as ZodNever, type z_ZodNeverDef as ZodNeverDef, type z_ZodNonEmptyArray as ZodNonEmptyArray, type z_ZodNotFiniteIssue as ZodNotFiniteIssue, type z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue, z_ZodNull as ZodNull, type z_ZodNullDef as ZodNullDef, z_ZodNullable as ZodNullable, type z_ZodNullableDef as ZodNullableDef, type z_ZodNullableType as ZodNullableType, z_ZodNumber as ZodNumber, type z_ZodNumberCheck as ZodNumberCheck, type z_ZodNumberDef as ZodNumberDef, z_ZodObject as ZodObject, type z_ZodObjectDef as ZodObjectDef, z_ZodOptional as ZodOptional, type z_ZodOptionalDef as ZodOptionalDef, type z_ZodOptionalType as ZodOptionalType, type z_ZodParsedType as ZodParsedType, z_ZodPipeline as ZodPipeline, type z_ZodPipelineDef as ZodPipelineDef, z_ZodPromise as ZodPromise, type z_ZodPromiseDef as ZodPromiseDef, type z_ZodRawShape as ZodRawShape, z_ZodReadonly as ZodReadonly, type z_ZodReadonlyDef as ZodReadonlyDef, z_ZodRecord as ZodRecord, type z_ZodRecordDef as ZodRecordDef, ZodType as ZodSchema, z_ZodSet as ZodSet, type z_ZodSetDef as ZodSetDef, z_ZodString as ZodString, type z_ZodStringCheck as ZodStringCheck, type z_ZodStringDef as ZodStringDef, z_ZodSymbol as ZodSymbol, type z_ZodSymbolDef as ZodSymbolDef, type z_ZodTooBigIssue as ZodTooBigIssue, type z_ZodTooSmallIssue as ZodTooSmallIssue, ZodEffects as ZodTransformer, z_ZodTuple as ZodTuple, type z_ZodTupleDef as ZodTupleDef, type z_ZodTupleItems as ZodTupleItems, z_ZodType as ZodType, type z_ZodTypeAny as ZodTypeAny, type z_ZodTypeDef as ZodTypeDef, z_ZodUndefined as ZodUndefined, type z_ZodUndefinedDef as ZodUndefinedDef, z_ZodUnion as ZodUnion, type z_ZodUnionDef as ZodUnionDef, type z_ZodUnionOptions as ZodUnionOptions, z_ZodUnknown as ZodUnknown, type z_ZodUnknownDef as ZodUnknownDef, type z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue, z_ZodVoid as ZodVoid, type z_ZodVoidDef as ZodVoidDef, z_addIssueToContext as addIssueToContext, anyType as any, arrayType as array, type z_arrayOutputType as arrayOutputType, type z_baseObjectInputType as baseObjectInputType, type z_baseObjectOutputType as baseObjectOutputType, bigIntType as bigint, booleanType as boolean, z_coerce as coerce, z_custom as custom, dateType as date, errorMap as defaultErrorMap, type z_deoptional as deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, z_getErrorMap as getErrorMap, z_getParsedType as getParsedType, type TypeOf as infer, type z_inferFlattenedErrors as inferFlattenedErrors, type z_inferFormattedError as inferFormattedError, type z_input as input, instanceOfType as instanceof, intersectionType as intersection, z_isAborted as isAborted, z_isAsync as isAsync, z_isDirty as isDirty, z_isValid as isValid, z_late as late, lazyType as lazy, literalType as literal, z_makeIssue as makeIssue, mapType as map, type z_mergeTypes as mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, type z_noUnrecognized as noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, type z_objectInputType as objectInputType, type z_objectOutputType as objectOutputType, z_objectUtil as objectUtil, z_oboolean as oboolean, z_onumber as onumber, optionalType as optional, z_ostring as ostring, type z_output as output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, z_quotelessJson as quotelessJson, recordType as record, setType as set, z_setErrorMap as setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, type z_typeToFlattenedError as typeToFlattenedError, type z_typecast as typecast, undefinedType as undefined, unionType as union, unknownType as unknown, z_util as util, voidType as void };
|
|
1730
|
+
export { type z_AnyZodObject as AnyZodObject, type z_AnyZodTuple as AnyZodTuple, type z_ArrayCardinality as ArrayCardinality, type z_ArrayKeys as ArrayKeys, type z_AssertArray as AssertArray, type z_AsyncParseReturnType as AsyncParseReturnType, type z_BRAND as BRAND, type z_CatchallInput as CatchallInput, type z_CatchallOutput as CatchallOutput, type z_CustomErrorParams as CustomErrorParams, z_DIRTY as DIRTY, type z_DenormalizedError as DenormalizedError, z_EMPTY_PATH as EMPTY_PATH, type z_Effect as Effect, type z_EnumLike as EnumLike, type z_EnumValues as EnumValues, type z_ErrorMapCtx as ErrorMapCtx, type z_FilterEnum as FilterEnum, z_INVALID as INVALID, type z_Indices as Indices, type z_InnerTypeOfFunction as InnerTypeOfFunction, type z_InputTypeOfTuple as InputTypeOfTuple, type z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest, type z_IpVersion as IpVersion, type z_IssueData as IssueData, type z_KeySchema as KeySchema, z_NEVER as NEVER, z_OK as OK, type z_ObjectPair as ObjectPair, type z_OuterTypeOfFunction as OuterTypeOfFunction, type z_OutputTypeOfTuple as OutputTypeOfTuple, type z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest, type z_ParseContext as ParseContext, type z_ParseInput as ParseInput, type z_ParseParams as ParseParams, type z_ParsePath as ParsePath, type z_ParsePathComponent as ParsePathComponent, type z_ParseResult as ParseResult, type z_ParseReturnType as ParseReturnType, z_ParseStatus as ParseStatus, type z_PassthroughType as PassthroughType, type z_PreprocessEffect as PreprocessEffect, type z_Primitive as Primitive, type z_ProcessedCreateParams as ProcessedCreateParams, type z_RawCreateParams as RawCreateParams, type z_RecordType as RecordType, type z_Refinement as Refinement, type z_RefinementCtx as RefinementCtx, type z_RefinementEffect as RefinementEffect, type z_SafeParseError as SafeParseError, type z_SafeParseReturnType as SafeParseReturnType, type z_SafeParseSuccess as SafeParseSuccess, type z_Scalars as Scalars, ZodType as Schema, type z_SomeZodObject as SomeZodObject, type z_StringValidation as StringValidation, type z_SuperRefinement as SuperRefinement, type z_SyncParseReturnType as SyncParseReturnType, type z_TransformEffect as TransformEffect, type z_TypeOf as TypeOf, type z_UnknownKeysParam as UnknownKeysParam, type z_Values as Values, type z_Writeable as Writeable, z_ZodAny as ZodAny, type z_ZodAnyDef as ZodAnyDef, z_ZodArray as ZodArray, type z_ZodArrayDef as ZodArrayDef, z_ZodBigInt as ZodBigInt, type z_ZodBigIntCheck as ZodBigIntCheck, type z_ZodBigIntDef as ZodBigIntDef, z_ZodBoolean as ZodBoolean, type z_ZodBooleanDef as ZodBooleanDef, z_ZodBranded as ZodBranded, type z_ZodBrandedDef as ZodBrandedDef, z_ZodCatch as ZodCatch, type z_ZodCatchDef as ZodCatchDef, type z_ZodCustomIssue as ZodCustomIssue, z_ZodDate as ZodDate, type z_ZodDateCheck as ZodDateCheck, type z_ZodDateDef as ZodDateDef, z_ZodDefault as ZodDefault, type z_ZodDefaultDef as ZodDefaultDef, z_ZodDiscriminatedUnion as ZodDiscriminatedUnion, type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, z_ZodEffects as ZodEffects, type z_ZodEffectsDef as ZodEffectsDef, z_ZodEnum as ZodEnum, type z_ZodEnumDef as ZodEnumDef, z_ZodError as ZodError, type z_ZodErrorMap as ZodErrorMap, type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind, type z_ZodFormattedError as ZodFormattedError, z_ZodFunction as ZodFunction, type z_ZodFunctionDef as ZodFunctionDef, z_ZodIntersection as ZodIntersection, type z_ZodIntersectionDef as ZodIntersectionDef, type z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue, type z_ZodInvalidDateIssue as ZodInvalidDateIssue, type z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue, type z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue, type z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue, type z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue, type z_ZodInvalidStringIssue as ZodInvalidStringIssue, type z_ZodInvalidTypeIssue as ZodInvalidTypeIssue, type z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue, type z_ZodInvalidUnionIssue as ZodInvalidUnionIssue, type z_ZodIssue as ZodIssue, type z_ZodIssueBase as ZodIssueBase, type z_ZodIssueCode as ZodIssueCode, type z_ZodIssueOptionalMessage as ZodIssueOptionalMessage, z_ZodLazy as ZodLazy, type z_ZodLazyDef as ZodLazyDef, z_ZodLiteral as ZodLiteral, type z_ZodLiteralDef as ZodLiteralDef, z_ZodMap as ZodMap, type z_ZodMapDef as ZodMapDef, z_ZodNaN as ZodNaN, type z_ZodNaNDef as ZodNaNDef, z_ZodNativeEnum as ZodNativeEnum, type z_ZodNativeEnumDef as ZodNativeEnumDef, z_ZodNever as ZodNever, type z_ZodNeverDef as ZodNeverDef, type z_ZodNonEmptyArray as ZodNonEmptyArray, type z_ZodNotFiniteIssue as ZodNotFiniteIssue, type z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue, z_ZodNull as ZodNull, type z_ZodNullDef as ZodNullDef, z_ZodNullable as ZodNullable, type z_ZodNullableDef as ZodNullableDef, type z_ZodNullableType as ZodNullableType, z_ZodNumber as ZodNumber, type z_ZodNumberCheck as ZodNumberCheck, type z_ZodNumberDef as ZodNumberDef, z_ZodObject as ZodObject, type z_ZodObjectDef as ZodObjectDef, z_ZodOptional as ZodOptional, type z_ZodOptionalDef as ZodOptionalDef, type z_ZodOptionalType as ZodOptionalType, type z_ZodParsedType as ZodParsedType, z_ZodPipeline as ZodPipeline, type z_ZodPipelineDef as ZodPipelineDef, z_ZodPromise as ZodPromise, type z_ZodPromiseDef as ZodPromiseDef, type z_ZodRawShape as ZodRawShape, z_ZodReadonly as ZodReadonly, type z_ZodReadonlyDef as ZodReadonlyDef, z_ZodRecord as ZodRecord, type z_ZodRecordDef as ZodRecordDef, ZodType as ZodSchema, z_ZodSet as ZodSet, type z_ZodSetDef as ZodSetDef, z_ZodString as ZodString, type z_ZodStringCheck as ZodStringCheck, type z_ZodStringDef as ZodStringDef, z_ZodSymbol as ZodSymbol, type z_ZodSymbolDef as ZodSymbolDef, type z_ZodTooBigIssue as ZodTooBigIssue, type z_ZodTooSmallIssue as ZodTooSmallIssue, ZodEffects as ZodTransformer, z_ZodTuple as ZodTuple, type z_ZodTupleDef as ZodTupleDef, type z_ZodTupleItems as ZodTupleItems, z_ZodType as ZodType, type z_ZodTypeAny as ZodTypeAny, type z_ZodTypeDef as ZodTypeDef, z_ZodUndefined as ZodUndefined, type z_ZodUndefinedDef as ZodUndefinedDef, z_ZodUnion as ZodUnion, type z_ZodUnionDef as ZodUnionDef, type z_ZodUnionOptions as ZodUnionOptions, z_ZodUnknown as ZodUnknown, type z_ZodUnknownDef as ZodUnknownDef, type z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue, z_ZodVoid as ZodVoid, type z_ZodVoidDef as ZodVoidDef, z_addIssueToContext as addIssueToContext, anyType as any, arrayType as array, type z_arrayOutputType as arrayOutputType, type z_baseObjectInputType as baseObjectInputType, type z_baseObjectOutputType as baseObjectOutputType, bigIntType as bigint, booleanType as boolean, z_coerce as coerce, z_custom as custom, dateType as date, z_datetimeRegex as datetimeRegex, errorMap as defaultErrorMap, type z_deoptional as deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, z_getErrorMap as getErrorMap, z_getParsedType as getParsedType, type TypeOf as infer, type z_inferFlattenedErrors as inferFlattenedErrors, type z_inferFormattedError as inferFormattedError, type z_input as input, instanceOfType as instanceof, intersectionType as intersection, z_isAborted as isAborted, z_isAsync as isAsync, z_isDirty as isDirty, z_isValid as isValid, z_late as late, lazyType as lazy, literalType as literal, z_makeIssue as makeIssue, mapType as map, type z_mergeTypes as mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, type z_noUnrecognized as noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, type z_objectInputType as objectInputType, type z_objectOutputType as objectOutputType, z_objectUtil as objectUtil, z_oboolean as oboolean, z_onumber as onumber, optionalType as optional, z_ostring as ostring, type z_output as output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, z_quotelessJson as quotelessJson, recordType as record, setType as set, z_setErrorMap as setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, type z_typeToFlattenedError as typeToFlattenedError, type z_typecast as typecast, undefinedType as undefined, unionType as union, unknownType as unknown, z_util as util, voidType as void };
|
|
1645
1731
|
}
|
|
1646
1732
|
|
|
1647
|
-
export { type AnyZodObject, type AnyZodTuple, type ArrayCardinality, type ArrayKeys, type AssertArray, type AsyncParseReturnType, BRAND, type CatchallInput, type CatchallOutput, type CustomErrorParams, DIRTY, type DenormalizedError, EMPTY_PATH, type Effect, type EnumLike, type EnumValues, type ErrorMapCtx, type FilterEnum, INVALID, type Indices, type InnerTypeOfFunction, type InputTypeOfTuple, type InputTypeOfTupleWithRest, type IpVersion, type IssueData, type KeySchema, NEVER, OK, type ObjectPair, type OuterTypeOfFunction, type OutputTypeOfTuple, type OutputTypeOfTupleWithRest, type ParseContext, type ParseInput, type ParseParams, type ParsePath, type ParsePathComponent, type ParseResult, type ParseReturnType, ParseStatus, type PassthroughType, type PreprocessEffect, type Primitive, type ProcessedCreateParams, type RawCreateParams, type RecordType, type Refinement, type RefinementCtx, type RefinementEffect, type SafeParseError, type SafeParseReturnType, type SafeParseSuccess, type Scalars, ZodType as Schema, type SomeZodObject, type StringValidation, type SuperRefinement, type SyncParseReturnType, type TransformEffect, type TypeOf, type UnknownKeysParam, type Values, type Writeable, ZodAny, type ZodAnyDef, ZodArray, type ZodArrayDef, ZodBigInt, type ZodBigIntCheck, type ZodBigIntDef, ZodBoolean, type ZodBooleanDef, ZodBranded, type ZodBrandedDef, ZodCatch, type ZodCatchDef, type ZodCustomIssue, ZodDate, type ZodDateCheck, type ZodDateDef, ZodDefault, type ZodDefaultDef, ZodDiscriminatedUnion, type ZodDiscriminatedUnionDef, type ZodDiscriminatedUnionOption, ZodEffects, type ZodEffectsDef, ZodEnum, type ZodEnumDef, ZodError, type ZodErrorMap, type ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, type ZodFormattedError, ZodFunction, type ZodFunctionDef, ZodIntersection, type ZodIntersectionDef, type ZodInvalidArgumentsIssue, type ZodInvalidDateIssue, type ZodInvalidEnumValueIssue, type ZodInvalidIntersectionTypesIssue, type ZodInvalidLiteralIssue, type ZodInvalidReturnTypeIssue, type ZodInvalidStringIssue, type ZodInvalidTypeIssue, type ZodInvalidUnionDiscriminatorIssue, type ZodInvalidUnionIssue, type ZodIssue, type ZodIssueBase, ZodIssueCode, type ZodIssueOptionalMessage, ZodLazy, type ZodLazyDef, ZodLiteral, type ZodLiteralDef, ZodMap, type ZodMapDef, ZodNaN, type ZodNaNDef, ZodNativeEnum, type ZodNativeEnumDef, ZodNever, type ZodNeverDef, type ZodNonEmptyArray, type ZodNotFiniteIssue, type ZodNotMultipleOfIssue, ZodNull, type ZodNullDef, ZodNullable, type ZodNullableDef, type ZodNullableType, ZodNumber, type ZodNumberCheck, type ZodNumberDef, ZodObject, type ZodObjectDef, ZodOptional, type ZodOptionalDef, type ZodOptionalType, ZodParsedType, ZodPipeline, type ZodPipelineDef, ZodPromise, type ZodPromiseDef, type ZodRawShape, ZodReadonly, type ZodReadonlyDef, ZodRecord, type ZodRecordDef, ZodType as ZodSchema, ZodSet, type ZodSetDef, ZodString, type ZodStringCheck, type ZodStringDef, ZodSymbol, type ZodSymbolDef, type ZodTooBigIssue, type ZodTooSmallIssue, ZodEffects as ZodTransformer, ZodTuple, type ZodTupleDef, type ZodTupleItems, ZodType, type ZodTypeAny, type ZodTypeDef, ZodUndefined, type ZodUndefinedDef, ZodUnion, type ZodUnionDef, type ZodUnionOptions, ZodUnknown, type ZodUnknownDef, type ZodUnrecognizedKeysIssue, ZodVoid, type ZodVoidDef, addIssueToContext, anyType as any, arrayType as array, type arrayOutputType, type baseObjectInputType, type baseObjectOutputType, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, errorMap as defaultErrorMap, type deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, type TypeOf as infer, type inferFlattenedErrors, type inferFormattedError, type input, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, type mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, type noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, type objectInputType, type objectOutputType, objectUtil, oboolean, onumber, optionalType as optional, ostring, type output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, type typeToFlattenedError, type typecast, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };
|
|
1733
|
+
export { type AnyZodObject, type AnyZodTuple, type ArrayCardinality, type ArrayKeys, type AssertArray, type AsyncParseReturnType, BRAND, type CatchallInput, type CatchallOutput, type CustomErrorParams, DIRTY, type DenormalizedError, EMPTY_PATH, type Effect, type EnumLike, type EnumValues, type ErrorMapCtx, type FilterEnum, INVALID, type Indices, type InnerTypeOfFunction, type InputTypeOfTuple, type InputTypeOfTupleWithRest, type IpVersion, type IssueData, type KeySchema, NEVER, OK, type ObjectPair, type OuterTypeOfFunction, type OutputTypeOfTuple, type OutputTypeOfTupleWithRest, type ParseContext, type ParseInput, type ParseParams, type ParsePath, type ParsePathComponent, type ParseResult, type ParseReturnType, ParseStatus, type PassthroughType, type PreprocessEffect, type Primitive, type ProcessedCreateParams, type RawCreateParams, type RecordType, type Refinement, type RefinementCtx, type RefinementEffect, type SafeParseError, type SafeParseReturnType, type SafeParseSuccess, type Scalars, ZodType as Schema, type SomeZodObject, type StringValidation, type SuperRefinement, type SyncParseReturnType, type TransformEffect, type TypeOf, type UnknownKeysParam, type Values, type Writeable, ZodAny, type ZodAnyDef, ZodArray, type ZodArrayDef, ZodBigInt, type ZodBigIntCheck, type ZodBigIntDef, ZodBoolean, type ZodBooleanDef, ZodBranded, type ZodBrandedDef, ZodCatch, type ZodCatchDef, type ZodCustomIssue, ZodDate, type ZodDateCheck, type ZodDateDef, ZodDefault, type ZodDefaultDef, ZodDiscriminatedUnion, type ZodDiscriminatedUnionDef, type ZodDiscriminatedUnionOption, ZodEffects, type ZodEffectsDef, ZodEnum, type ZodEnumDef, ZodError, type ZodErrorMap, type ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, type ZodFormattedError, ZodFunction, type ZodFunctionDef, ZodIntersection, type ZodIntersectionDef, type ZodInvalidArgumentsIssue, type ZodInvalidDateIssue, type ZodInvalidEnumValueIssue, type ZodInvalidIntersectionTypesIssue, type ZodInvalidLiteralIssue, type ZodInvalidReturnTypeIssue, type ZodInvalidStringIssue, type ZodInvalidTypeIssue, type ZodInvalidUnionDiscriminatorIssue, type ZodInvalidUnionIssue, type ZodIssue, type ZodIssueBase, ZodIssueCode, type ZodIssueOptionalMessage, ZodLazy, type ZodLazyDef, ZodLiteral, type ZodLiteralDef, ZodMap, type ZodMapDef, ZodNaN, type ZodNaNDef, ZodNativeEnum, type ZodNativeEnumDef, ZodNever, type ZodNeverDef, type ZodNonEmptyArray, type ZodNotFiniteIssue, type ZodNotMultipleOfIssue, ZodNull, type ZodNullDef, ZodNullable, type ZodNullableDef, type ZodNullableType, ZodNumber, type ZodNumberCheck, type ZodNumberDef, ZodObject, type ZodObjectDef, ZodOptional, type ZodOptionalDef, type ZodOptionalType, ZodParsedType, ZodPipeline, type ZodPipelineDef, ZodPromise, type ZodPromiseDef, type ZodRawShape, ZodReadonly, type ZodReadonlyDef, ZodRecord, type ZodRecordDef, ZodType as ZodSchema, ZodSet, type ZodSetDef, ZodString, type ZodStringCheck, type ZodStringDef, ZodSymbol, type ZodSymbolDef, type ZodTooBigIssue, type ZodTooSmallIssue, ZodEffects as ZodTransformer, ZodTuple, type ZodTupleDef, type ZodTupleItems, ZodType, type ZodTypeAny, type ZodTypeDef, ZodUndefined, type ZodUndefinedDef, ZodUnion, type ZodUnionDef, type ZodUnionOptions, ZodUnknown, type ZodUnknownDef, type ZodUnrecognizedKeysIssue, ZodVoid, type ZodVoidDef, addIssueToContext, anyType as any, arrayType as array, type arrayOutputType, type baseObjectInputType, type baseObjectOutputType, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, errorMap as defaultErrorMap, type deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, type TypeOf as infer, type inferFlattenedErrors, type inferFormattedError, type input, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, type mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, type noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, type objectInputType, type objectOutputType, objectUtil, oboolean, onumber, optionalType as optional, ostring, type output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, type typeToFlattenedError, type typecast, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };
|