Skip to content

Ensure non-identifier hash keys are mapped correctly #64

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

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

dfreeman
Copy link
Member

@dfreeman dfreeman commented Mar 13, 2021

This is similar to the bug that revealed the larger issue identified in #61, but in reverse. For arg names that aren't identifier-safe (such as the spinal-case event names used by <Input />, we were mapping the full string rather than only its contents to the HBS identifier.

This would cause TypeScript to suggest string keys when completing those arguments, which doesn't give the result we'd want.

image

@dfreeman dfreeman added the bug Something isn't working label Mar 13, 2021
@dfreeman dfreeman force-pushed the unsafe-hash-key-mappings branch from 1046b73 to 701a1aa Compare March 13, 2021 17:18
@dfreeman dfreeman merged commit 662e9e8 into master Mar 13, 2021
@dfreeman dfreeman deleted the unsafe-hash-key-mappings branch March 13, 2021 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant