Give a better error message when an import isn't found but a namespace of the same name exists #10464
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
See #10463.
foo.d.ts
bar.ts
"foo"
won't be found, but if the compiler can resolve an identifier namedfoo
to a namespace that uses thedeclare module
syntax, we should probably give an error likeThe text was updated successfully, but these errors were encountered: