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

Record keys should be string | number | symbol instead of only string #730

Closed
user753 opened this issue Feb 12, 2019 · 3 comments
Closed
Labels

Comments

@user753
Copy link
Contributor

user753 commented Feb 12, 2019

For example I what to do this

    R.fromFoldable(array)([[1, "foo"]], x => x)

Is there any reason to use only strings?

@WhiteAbeLincoln
Copy link

I have the same use case, as I'm trying to write an invert object function (swaps keys and values), and I don't want to limit my input record to only string values. String | Number | Symbol gives a little more freedom in values

@raveclassic
Copy link
Collaborator

TS even has an alias - PropertyKey

@gcanti gcanti added the wontfix label Jan 11, 2020
@gcanti
Copy link
Owner

gcanti commented Jan 11, 2020

Tried to change the constraint a couple of times in the past, too complex

@gcanti gcanti closed this as completed Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants