It's essentially an inline ES6 import statement and it's valid code within a typescript definition file. I was having trouble pinpointing the exact conditions necessary to make this happen, but it happens nonetheless.
dts-bundle does not know how to process these and it outputs the line as-is, causing an unresolved module error. This PR fixes it.
Edit
The following type of imports were also not working ("side-effect-only" imports):
My typescript project sometimes outputs lines like these in the generated .d.ts files:
It's essentially an inline ES6 import statement and it's valid code within a typescript definition file. I was having trouble pinpointing the exact conditions necessary to make this happen, but it happens nonetheless.
dts-bundle does not know how to process these and it outputs the line as-is, causing an unresolved module error. This PR fixes it.
Edit
The following type of imports were also not working ("side-effect-only" imports):
I've included a fix for that as well.