Somtimes generating inline imports for d.ts files instead of using globally imported symbols #30258
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
TypeScript Version: typescript@3.2.4
I cannot use a more recent version, since I am using the Angular build process that requires
>=3.1.1 <3.3
.I am opening this issue as requested by defect
microsoft/rushstack#1067
The problem looks related to #25511 but that issue has been closed, still the problem persists for me.
Problem statement:
The
d.ts
file generated during my compile step looks like this:It references types from other modules via inline import statements. This causes a problem when generating documentation via the https://www.npmjs.com/package/@microsoft/api-documenter tool, because these inline import statements appear as is in the generated documentation. Instead of just the types they point to. This renders the documentation basically unreadable.
Expected behaviour
I would expect output similar to this:
The actual source code looks like this:
The text was updated successfully, but these errors were encountered: