I'm reading the docs of verbatimModuleSyntax, which links to now deprecated importsNotUsedAsValues. I found its statement for the value remove a bit confusing since I didn't know whether TypeScript compiler remove unused import by default:
remove: The default behavior of dropping import statements which only reference types.
I thought that TypeScript would not remove unused imports by reading this statement itself, but this is not true. After testing on the playground, I found that TypeScript remove unused import by default.
I found nowhere in the documentation saying about this default behaviour of removing unused imports. There are many cases we import something just for the side-effect, and removing unused imports by default is inappropriate for me due to this reason. My question is simple: Where is the statement in TypeScript docs website mentioning about this default behaviour?
interesting