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.
Let's consider something like
redux-saga/effect
. This may be used as an "import", but the package would look likeFrom dets perspective the original type, however, comes from
saga-core
, i.e., ifsaga-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.