Skip to content

Implement generic types for fromEntries of Record and ReadonlyRecord#1815

Open
dilame wants to merge 2 commits intogcanti:masterfrom
dilame:master
Open

Implement generic types for fromEntries of Record and ReadonlyRecord#1815
dilame wants to merge 2 commits intogcanti:masterfrom
dilame:master

Conversation

@dilame
Copy link
Copy Markdown

@dilame dilame commented Nov 26, 2022

I am heavily use types, and most of my Record inputs are typed with generic keys, so i really miss this feature.

I was forced to use Object.create(null) because otherwise typescript throwed compile error.

@arthurgubaidullin
Copy link
Copy Markdown

Awesome! I need it. I want use branded keys in records!

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