-
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
Tracking invalid type assertions #18217
Comments
So.. I kinda hit this today on |
I've run into an exception thrown by this line, which has a comment referencing this issue:
What's the best way to proceed? It looks like it would be relatively straightforward to add a check, but do I need to create a repro case to show it's a real issue? Should I open another issue and link to this one? Please advise. |
This issue was a catch-all for eventually removing every postfix |
got an undefined in tsserver version 4.5.20210901 /**
@type {PropType<PropType<X,'prototype'>,'get'>}
*/
var error; when you change a character in "prototype" or "get" and wait for type inference to activate, then this error appears in the devtools in code-insiders
Cannot read property '1' of undefined |
* Update to TypeScript 4.5.5, fix semantic lints. * Remove extra parens. * Remove now-outdated non-null comment around #18217.
It looks like custom transformers (at least those hooked into the |
@dannymcgee Would you mind filing a new issue for that, especially if you have a simple transformer that shows the bug? We can add those as unit tests. (As with #18217 (comment) this issue isn't really the right place to report isuses.) |
Before we had
no-object-literal-type-assertion
applied, there were a lot of suspicious casts.These have all been labeled with comments containing the text
GH#18217
.The text was updated successfully, but these errors were encountered: