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

Fix exact object indexer issue 7128 and 7240 #7271

Closed

Conversation

villesau
Copy link
Contributor

@villesau villesau commented Dec 16, 2018

This fixes #7128 and #7240

Root cause for both issues were same.

In overall I think that singleton string indexer properties should be treated as a regular keys from the get go but that's probably bigger change. The change introduced in this PR is probably fine for now as nothing broke, and test harness around exact indexer properties is now slightly better.

Having debugger setup in place helps a lot: #4181 (comment)

@villesau villesau force-pushed the fix-exact-string-indexer-issue branch from 950ad49 to 4e0c018 Compare December 16, 2018 02:15
@villesau villesau changed the title Fix exact object indexer issue 7128 Fix exact object indexer issue 7128 and 7240 Dec 16, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@jbrown215 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@villesau villesau changed the title Fix exact object indexer issue 7128 and 7240 Fix exact object indexer issue 7128, 7240 and 7210 Dec 19, 2018
@villesau villesau changed the title Fix exact object indexer issue 7128, 7240 and 7210 Fix exact object indexer issue 7128 and 7240 Dec 19, 2018
@goodmind goodmind added Stalled Issues and PRs that are stalled. Typing: object model labels Jul 27, 2019
@jedwards1211
Copy link
Contributor

Is there any reason this didn't get merged? Would be nice 😄

@villesau
Copy link
Contributor Author

villesau commented Dec 6, 2019

@jedwards1211 I had totally forgotten this PR :D I think here is the most comprehensive discussion about the topic: #7128

Most likely too much has changed since the PR that this could be taken in.

Maybe @jbrown215 could comment on this?

@SamChou19815
Copy link
Contributor

Closing this PR since all mentioned issues have been fixed. Most recently, #7128 is addressed with newly introduced mapped type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Stalled Issues and PRs that are stalled. Typing: object model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enum indexer property not inferred properly
6 participants