zod 3.25.46 → 3.25.48
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.
|
@@ -935,7 +935,6 @@ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
|
935
935
|
const propValues = {};
|
|
936
936
|
for (const option of def.options) {
|
|
937
937
|
const pv = option._zod.propValues;
|
|
938
|
-
console.dir(pv, { depth: null });
|
|
939
938
|
if (!pv || Object.keys(pv).length === 0)
|
|
940
939
|
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
|
|
941
940
|
for (const [k, v] of Object.entries(pv)) {
|
|
@@ -904,7 +904,6 @@ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
|
904
904
|
const propValues = {};
|
|
905
905
|
for (const option of def.options) {
|
|
906
906
|
const pv = option._zod.propValues;
|
|
907
|
-
console.dir(pv, { depth: null });
|
|
908
907
|
if (!pv || Object.keys(pv).length === 0)
|
|
909
908
|
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
|
|
910
909
|
for (const [k, v] of Object.entries(pv)) {
|
|
@@ -75,9 +75,10 @@ export interface $ZodTypeInternals<out O = unknown, out I = unknown> {
|
|
|
75
75
|
/** @internal The parent of this schema. Only set during certain clone operations. */
|
|
76
76
|
parent?: $ZodType | undefined;
|
|
77
77
|
}
|
|
78
|
+
export type $ZodStandardSchema<T extends $ZodType> = StandardSchemaV1.Props<core.input<T>, core.output<T>>;
|
|
78
79
|
export interface $ZodType<O = unknown, I = unknown> {
|
|
79
80
|
_zod: $ZodTypeInternals<O, I>;
|
|
80
|
-
"~standard":
|
|
81
|
+
"~standard": $ZodStandardSchema<this>;
|
|
81
82
|
}
|
|
82
83
|
export declare const $ZodType: core.$constructor<$ZodType>;
|
|
83
84
|
export { clone } from "./util.js";
|
package/package.json
CHANGED