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

#501@patch: allow proxy keys besides strings #529

Merged

Conversation

kalvenschraut
Copy link
Contributor

@kalvenschraut kalvenschraut commented Jul 4, 2022

fixes #501

Simplest solution was to add the toString method.

I did try to change types and write a wrapper function the proxy handler uses, but major blocking point of that was a type error I couldn't resolve. Mainly type symbol can not be used as an index which since version 4.4 of typescript is completely valid. Couldn't figure out why it wouldn't allow it in this specific repo, as I wasn't having issues with my other ones.

Copy link
Owner

@capricorn86 capricorn86 left a comment

Choose a reason for hiding this comment

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

Nice! 👍 🙂

@capricorn86 capricorn86 merged commit 8c355d9 into capricorn86:master Jul 4, 2022
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.

Get on a proxy key that is a Symbol causing an error
2 participants