-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(store,world): usable enum values from config #2807
Conversation
🦋 Changeset detectedLatest commit: 668b3d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
i very much like the new feature but is there any way we could turn this into a non-breaking change? maybe as a new property on the output? there might be teams out there using the current structure |
.changeset/sweet-lemons-eat.md
Outdated
writeContract({ | ||
// … | ||
functionName: "setTerrainType", | ||
args: [config.mappedEnums.TerrainType.Grass], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
args: [config.mappedEnums.TerrainType.Grass], | |
args: [config.enumValues.TerrainType.Grass], |
I can't decide which 🤔
decided on enumValues
Co-authored-by: alvarius <[email protected]>
transforms enum input arrays into an object so they can be used in TS
closes #1957