zod 3.23.3 → 3.23.5
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/README.md +2 -0
- package/lib/types.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/types.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare type SafeParseError<Input> = {
|
|
|
44
44
|
data?: never;
|
|
45
45
|
};
|
|
46
46
|
export declare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;
|
|
47
|
-
export declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input =
|
|
47
|
+
export declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
|
|
48
48
|
readonly _type: Output;
|
|
49
49
|
readonly _output: Output;
|
|
50
50
|
readonly _input: Input;
|
|
@@ -758,7 +758,7 @@ export declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {
|
|
|
758
758
|
}
|
|
759
759
|
export declare type ArrayKeys = keyof any[];
|
|
760
760
|
export declare type Indices<T> = Exclude<keyof T, ArrayKeys>;
|
|
761
|
-
export declare type EnumValues<T extends string = string> = [T, ...T[]];
|
|
761
|
+
export declare type EnumValues<T extends string = string> = readonly [T, ...T[]];
|
|
762
762
|
export declare type Values<T extends EnumValues> = {
|
|
763
763
|
[k in T[number]]: k;
|
|
764
764
|
};
|