Nested assignment to untyped imports in JS results in error #40140
Labels
Bug
A bug in TypeScript
checkJs
Relates to checking JavaScript using TypeScript
Domain: JavaScript
The issue relates to JavaScript specifically
Fix Available
A PR has been opened for this issue
Milestone
Since the "JS require is alias" PR went in, in JS:
Prerequisite: install shelljs but NOT @types/shelljs.
Expected behavior:
No error, like typescript:
Actual behavior:
Property
exec
doesn't exist on typetypeof shell
.Workaround:
Install
@types/shelljs
.The best probable fix is to disable assignment declarations to JS aliases. It doesn't make sense to me. However, this might not happen enough to be worth fixing.
The text was updated successfully, but these errors were encountered: