-
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
Types include unresolved imports will be turned into any
#54630
Comments
Update: not right actually. Types include unresolved imports will be turned into |
any
Just for to make it clearer: type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;
type A = IsAny<any>; // β
type A = true
type B = IsAny<import('vue').GlobalComponents>; // β type B = any
type C = IsAny<import('vue').GlobalComponents & {}>; // β
type C = true |
Yes this also works! I can change my fix. |
There are no specific guarantees on what happens when there is an error type in your program. |
That's true. However, the type of it is literally |
The hover shows "any" for lack of a better thing to display. It could be differentiated, but these things tend to not stick around in programs very long. |
Maybe you are right! |
My suspicion is that any compile-time check that requires a |
This issue has been marked as 'Not a Defect' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
π Search Terms
any, unresolved
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Β―_(γ)_/Β―
π Expected behavior
They should not behave differently
The text was updated successfully, but these errors were encountered: