You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Different Declaration output for same code from js and ts fileΒ #51622
Activity
RyanCavanaugh commentedon Nov 30, 2022
I think I understand why this is happening, but it seems super undesirable.
fatcerberus commentedon Dec 4, 2022
Why is TS changing the import specifier? That should never happen.
daKmoR commentedon Dec 7, 2022
Is there anything we can do to help? is the reproduction good enough?
in the meantime we found a "worse" example
seems potentially related as its resolving a path again... but as it's a monorepo it does go pretty badly π
e.g. to highlight the issue
we currently "postprocess" the generated
*.d.tsfiles to "fix" it π would be nice if we could get rid of this "workaround" πagain if there is anything we can do to prepare this more please let us know π€
okadurin commentedon Jan 21, 2026
The issue is still valid and the
actual behaviourpart is reproducible