Skip to content

Conversation

@weswigham
Copy link
Member

Fixes #26423

Removes a layer from missing property errors that aren't excess property errors and lists multiple properties when multiple properties are missing, up to a limit.

@weswigham
Copy link
Member Author

cc @DanielRosenwasser who should look over the copy and decide if he likes it~

@weswigham
Copy link
Member Author

@DanielRosenwasser Fixed~

~~
!!! error TS2322: Type 'A' is not assignable to type 'B'.
!!! error TS2322: Property 'b' is missing in type 'A'.
!!! error TS2737: Property 'b' is missing in type 'A' but present in type 'B'.
Copy link
Member

Choose a reason for hiding this comment

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

Part of me feels like we lose some context on why we're reporting the error message when it's the first elaboration.

Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

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

Looks good but I filed #28491 as a follow-up.

@weswigham weswigham merged commit 11eee2b into microsoft:master Nov 12, 2018
@weswigham weswigham deleted the better-missing-properties-error branch November 12, 2018 22:31
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants