Skip to content
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

Entries takes key's type as a generic #709

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

AlexErrant
Copy link
Contributor

I have an object whose keys are "branded" strings, which are basically more strictly typed strings. This PR fixes the type of the key passed through to the callback.

I demo the new behavior in the screenshot below, where you can see the types in the inline hints:

image

Copy link

changeset-bot bot commented Oct 24, 2024

🦋 Changeset detected

Latest commit: 9749071

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@solid-primitives/keyed Patch
@solid-primitives/immutable Patch

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

@thetarnav thetarnav merged commit cc834cf into solidjs-community:main Oct 24, 2024
1 of 2 checks passed
@AlexErrant AlexErrant deleted the entriesGenericKey branch October 24, 2024 22:04
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.

2 participants