Skip to content

Conversation

@dqbd
Copy link
Collaborator

@dqbd dqbd commented Jun 17, 2025

.registry(...) does not support modifying the input Zod internal, thus the input types for graphs are incorrectly inferred to output type. Goal is to augment ZodType with an overloaded .registry(LanggraphZodMetaRegistry) method, that casts the return type to proper schema.

@dqbd dqbd marked this pull request as ready for review June 17, 2025 21:32
@dqbd dqbd requested a review from hntrl June 17, 2025 21:33
nfcampos
nfcampos previously approved these changes Jun 17, 2025
@dqbd dqbd requested a review from hntrl June 20, 2025 15:57
Copy link
Member

@hntrl hntrl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for looking at this!

@dqbd dqbd merged commit d77735a into main Jun 20, 2025
17 checks passed
@dqbd dqbd deleted the dqbd/zod-4-registry-types branch June 20, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants