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 object properties lose type #11156

Open
wants to merge 2 commits into
base: 5.x
Choose a base branch
from
Open

Conversation

MoonE
Copy link
Contributor

@MoonE MoonE commented Nov 12, 2024

Fixes #9767
Fixes #10380
Fixes #11041

@MoonE MoonE force-pushed the object-property-types branch from ceaf4d9 to b5b96c0 Compare November 12, 2024 00:30
@MoonE
Copy link
Contributor Author

MoonE commented Nov 12, 2024

Wondering if this should default to never instead of mixed...

Is there a difference between object and object{}? As in one is an object which could have any properties the other is an object without any properties.
What about object{p: int, ...} and object{p: int}? Seems like the ... part is ignored for objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant