-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Import declarations seems to break namespace
compilation
#24432
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
Comments
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
@mhegazy |
Modules (i.e. a file with a top lever |
ok, so, how can i use imported type in interface declaration? only without |
your example is not relevant,
|
Apparently, the problem was in moment.js itself creating moment.shim.d.ts:
and then declaring
works fine. |
TypeScript Version: 2.8.1
Search Terms:
namespace
import
Code
Expected behavior:
Compiles fine
Actual behavior:
Webstorm spits out an error.
once
import
declaration andare removed, it compiles fine.
also, even
import
declaration by itself, withoutbreaks compilation with the same result.
tsconfig:
The text was updated successfully, but these errors were encountered: