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

Removed DeepReadonly limitation on non-function keys to fix optional … #31

Merged
merged 1 commit into from
Oct 20, 2018

Conversation

piotrwitek
Copy link
Owner

@piotrwitek piotrwitek commented Oct 19, 2018

Removed DeepReadonly limitation on non-function keys to fix optional keys marked as required

@piotrwitek piotrwitek changed the title Removed DeepReadonly limitation to non-function keys to fix optional … Removed DeepReadonly limitation on non-function keys to fix optional … Oct 19, 2018
@ajhyndman
Copy link
Contributor

Thanks for finding the workaround here, @piotrwitek. I think this change makes sense!

I am curious though: can you explain what was broken when changing { ... }[keyof T] to key of { ... }?

@piotrwitek
Copy link
Owner Author

Behaviour of the particular type was broken, it was supposed to be narrowed by keyof T and not expanded by key of

@piotrwitek piotrwitek merged commit 532fe5c into master Oct 20, 2018
@piotrwitek piotrwitek deleted the better-readonly branch October 20, 2018 18:34
@FrimJo
Copy link

FrimJo commented Oct 29, 2018

Thnx for a nice update! I see that is has been merged with master, when will it see the light of day?

@piotrwitek
Copy link
Owner Author

I'll try to release a new package today/tomorrow.

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.

3 participants