Skip to content

Conversation

@EamonNerbonne
Copy link
Contributor

@EamonNerbonne EamonNerbonne commented Jun 12, 2025

Context

keeping all those keys in sync is annoying, a bunch of busiwork when implementing and reviewing, and slightly increases the chance of merge conflicts - and useless, since zod by design has a runtime representation of the types; in these cases we don't need to duplicate that..

Implementation

Just use TS+zod features to ensure the keys-of lists are correct.


main:
image

this branch:
image


main:
image

this branch:
image


If we think this is a good idea, I think I should try and contribute this to roo: DRAFT because I want to try that first if we approve.

....so, is it a good idea?

@changeset-bot

This comment was marked as off-topic.

@chrarnoldus
Copy link
Collaborator

If we think this is a good idea, I think I should try and contribute this to roo: DRAFT because I want to try that first if we approve.

I think this is a good idea if it works. We should probably try to go straight to Roo indeed.

@EamonNerbonne
Copy link
Contributor Author

@EamonNerbonne EamonNerbonne marked this pull request as ready for review June 14, 2025 14:47
@EamonNerbonne
Copy link
Contributor Author

Merged in roo, so merging here is just going to make the next merge less conflict-heavy!

Copy link
Contributor

@hassoncs hassoncs left a comment

Choose a reason for hiding this comment

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

awesomeeee 🎉

@chrarnoldus chrarnoldus merged commit e6eb9e7 into main Jun 14, 2025
7 checks passed
@chrarnoldus chrarnoldus deleted the eamon/AvoidDuplication branch June 14, 2025 18:45
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