-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Can we give better error messages on invoked accessors? #24554
Comments
Man I like the passion to immediately convert some feedback on Twitter into a GitHub issue. What I really like in cases like this is "Did you mean...?" types of error feedback (showing the same surrounding code from the user, but modified). I personally also like "Read more" links in cases like this, which potentially contain unfamiliar terms. It could look like this.
And a page like https://www.typescriptlang.org/e/missing-call-signature could list some examples which throw this error and explain terms like "invoke" , "call signature" and so on. But just some ideas 👋😊 |
I would like to start having a look into this one. It is my contribution so may need some assistance navigating 😄 |
Hi @DanielRosenwasser, I've submitted a PR to improve this (#37800) — is there any procedure I should follow to get it reviewed? |
Thanks @jtbandes! During the beta period the TypeScript team end up particularly busy with bugs, as your PR is a feature we're likely to come around to it post 3.9 launch (unless someone can quickly get through the PR) - so for now, this is great and it's on us to do the next step 👍 |
Thanks! |
Small nit: the issue isn't exactly considered a feature, but @orta's right - most of the team is heads down trying to get work done in time for 3.9. I did leave some feedback on the PR. |
Thanks @jtbandes! |
Context https://twitter.com/basarat/status/1002410514704547840?s=19
The text was updated successfully, but these errors were encountered: