zod 3.25.43 → 3.25.44
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.
|
@@ -24,12 +24,24 @@ export type $ZodBranded<T extends schemas.$ZodType, Brand extends string | numbe
|
|
|
24
24
|
export declare class $ZodAsyncError extends Error {
|
|
25
25
|
constructor();
|
|
26
26
|
}
|
|
27
|
-
export type input<T
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
export type input<T> = T extends {
|
|
28
|
+
_zod: {
|
|
29
|
+
"~input": any;
|
|
30
|
+
};
|
|
31
|
+
} ? T["_zod"]["~input"] : T extends {
|
|
32
|
+
_zod: {
|
|
33
|
+
input: any;
|
|
34
|
+
};
|
|
35
|
+
} ? T["_zod"]["input"] : never;
|
|
36
|
+
export type output<T> = T extends {
|
|
37
|
+
_zod: {
|
|
38
|
+
"~output": any;
|
|
39
|
+
};
|
|
40
|
+
} ? T["_zod"]["~output"] : T extends {
|
|
41
|
+
_zod: {
|
|
42
|
+
output: any;
|
|
43
|
+
};
|
|
44
|
+
} ? T["_zod"]["output"] : never;
|
|
33
45
|
export type { output as infer };
|
|
34
46
|
export interface $ZodConfig {
|
|
35
47
|
/** Custom error map. Overrides `config().localeError`. */
|
|
@@ -22,7 +22,12 @@ export interface JSONSchemaMeta {
|
|
|
22
22
|
id?: string | undefined;
|
|
23
23
|
title?: string | undefined;
|
|
24
24
|
description?: string | undefined;
|
|
25
|
-
|
|
25
|
+
example?: unknown | undefined;
|
|
26
|
+
examples?: unknown[] | Record<string, {
|
|
27
|
+
value: unknown;
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
}> | undefined;
|
|
30
|
+
deprecated?: boolean | undefined;
|
|
26
31
|
[k: string]: unknown;
|
|
27
32
|
}
|
|
28
33
|
export interface GlobalMeta extends JSONSchemaMeta {
|
|
@@ -383,14 +383,14 @@ declare abstract class Class {
|
|
|
383
383
|
declare function _instanceof<T extends typeof Class>(cls: T, params?: core.$ZodCustomParams): ZodMiniCustom<InstanceType<T>, InstanceType<T>>;
|
|
384
384
|
export { _instanceof as instanceof };
|
|
385
385
|
export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniPipe<ZodMiniUnknown, ZodMiniBoolean<boolean>>;
|
|
386
|
-
export type ZodMiniJSONSchema =
|
|
387
|
-
ZodMiniString
|
|
388
|
-
ZodMiniNumber
|
|
389
|
-
ZodMiniBoolean
|
|
386
|
+
export type ZodMiniJSONSchema = ZodMiniUnion<[
|
|
387
|
+
ZodMiniString,
|
|
388
|
+
ZodMiniNumber,
|
|
389
|
+
ZodMiniBoolean,
|
|
390
390
|
ZodMiniNull,
|
|
391
391
|
ZodMiniArray<ZodMiniJSONSchema>,
|
|
392
392
|
ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>
|
|
393
|
-
]
|
|
393
|
+
]> & {
|
|
394
394
|
_zod: {
|
|
395
395
|
input: util.JSONType;
|
|
396
396
|
output: util.JSONType;
|
package/package.json
CHANGED