I agree with @Tamas.
If you require the full access to all exports in the target file, then you can use the import * as Foo from './foo';
or
import foo from './foo':
but if you need to use specific function or const then better avoid "import *" and be explicit what you needs to do.