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

Refine type compat message #908

Merged
merged 6 commits into from Sep 22, 2023
Merged

Conversation

TwitchBronBron
Copy link
Member

@TwitchBronBron TwitchBronBron commented Sep 22, 2023

Tightens up some of the "type a is not compatible with type b" messages.
Truncates the list of items with a "...and x more" message.

Similar to typescript, this will show exclusively the "missing members" message if there are any missing members. Then, if no missing members, it'll show the "members are incompatible" message if there are any incompatible members. This helps reduce the size of these large errors in some codebases. You've got to address the missing members and the incompatible types, so it doesn't hurt to just show one at a time.

combined error message before:
image

Missing members after:
image

Incompatible members after:
image

@TwitchBronBron TwitchBronBron changed the base branch from master to release-0.66.0 September 22, 2023 12:30
@TwitchBronBron TwitchBronBron merged commit 3d63bd4 into release-0.66.0 Sep 22, 2023
5 checks passed
@TwitchBronBron TwitchBronBron deleted the refine-type-compat-message branch September 22, 2023 12:55
@TwitchBronBron TwitchBronBron added this to the v1.0.0 milestone Jan 24, 2024
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.

None yet

2 participants