FlorianRappl / dets

Generate a single declaration file for your TypeScript project. :rocket:
https://piral.io
MIT License
24 stars 5 forks source link

Re-Exported Type Should Come From Closest Module #11

Closed FlorianRappl closed 4 years ago

FlorianRappl commented 4 years ago

Let's consider something like redux-saga/effect. This may be used as an "import", but the package would look like

export * from 'saga-core/types/effect';

From dets perspective the original type, however, comes from saga-core, i.e., if saga-core is not part of the imports we'll just include it directly.

This is not desired. Instead, we'll should actually know that it was also exported from an imported module and use it from there - this way not including the typings, but rather just referencing the import.

FlorianRappl commented 4 years ago

Available in latest version (0.5).