Skip to content

Conversation

@DanielRosenwasser
Copy link
Member

@DanielRosenwasser DanielRosenwasser commented Jul 6, 2018

This pull request provides a related span on the declaration we're suggesting in our "did you mean...?" error messages.

thingyoumeantwasdeclaredhere

It currently doesn't handle union/intersection properties, or some corrections like with instance/static properties. So I guess it's a work in progress depending on how deep we want to go.

Fixes #25031

Also:

Fixes #25473
Fixes #25475

return result;
}

function getSuggestionForNonexistentSymbol(location: Node | undefined, outerName: __String, meaning: SymbolFlags): string | undefined {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should have made these all internal :(

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. 😡

We still can?

Copy link
Contributor

Choose a reason for hiding this comment

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

it is a breaking change..

Copy link
Contributor

Choose a reason for hiding this comment

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

but yes we can

@DanielRosenwasser DanielRosenwasser merged commit ea73ee7 into master Jul 6, 2018
@DanielRosenwasser DanielRosenwasser deleted the youProbablyMeantThisDeclaration branch July 6, 2018 19:03
@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.

3 participants