-
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
Narrowing from "any" using instanceOf will overwrite another narrowing expression in "||" #10398
Comments
But this is still an error if we correctly narrow to |
@RyanCavanaugh true; Though the error message is confusing then since you will be like why the type is only |
|
@weswigham see #4002 and #3947. |
Since |
TypeScript Version: build from master 8/17
Note: this doesn't happen if parameter
x
has typenumber | Number
The text was updated successfully, but these errors were encountered: