Skip to content

Commit d062720

Browse files
committed
Fix on .register methods
1 parent 5477ea2 commit d062720

File tree

5 files changed

+176
-139
lines changed

5 files changed

+176
-139
lines changed

packages/zod/src/v4/classic/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export interface ZodType<out Output = unknown, out Input = unknown> extends core
3535
registry: R,
3636
...meta: this extends R["_schema"]
3737
? undefined extends R["_meta"]
38-
? [core.$ZodRegistry<R["_meta"], this>["_meta"]?]
39-
: [core.$ZodRegistry<R["_meta"], this>["_meta"]]
38+
? [core.$replace<R["_meta"], this>?]
39+
: [core.$replace<R["_meta"], this>]
4040
: ["Incompatible schema"]
4141
): this;
4242

0 commit comments

Comments
 (0)