-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Allow untyped imports #11889
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow untyped imports #11889
Conversation
3534494
to
c81fec6
Compare
c81fec6
to
4937d9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With changes to the error message
@@ -2869,6 +2869,10 @@ | |||
"category": "Error", | |||
"code": 6143 | |||
}, | |||
"A package for '{0}' was found at '{1}', but is untyped. Because '--noImplicitAny' is enabled, this package must have a declaration.": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about something more consistent with the rest of the the --noImplicitAny
error message, e.g.: Could not find a declaration file for module '{0}'. All imports implicitly have type 'any'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about: "Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -2869,6 +2869,10 @@ | |||
"category": "Error", | |||
"code": 6143 | |||
}, | |||
"A package for '{0}' was found at '{1}', but is untyped. Because '--noImplicitAny' is enabled, this package must have a declaration.": { | |||
"category": "Error", | |||
"code": 6144 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this error code in the 7000
along with the other --noImplicitAnyErrors
Fixes #11106
Replaces #11446
Made easier by #11704. No longer has to touch
moduleNameResolver.ts
.