DEV Community

Discussion on: Exports and Imports and Defaults, Oh My!

Collapse
 
gmartigny profile image
Guillaume Martigny

Nice article. You just haven't talked about the * globber for import. You can use it to import everything from a module under a "namespace".

import * as Namespace from "module";
const app = new Namespace.App();
Enter fullscreen mode Exit fullscreen mode
Collapse
 
laurieontech profile image
Laurie

Definitely an important thing to know. I tried to keep it bite sized, so I didn't cover every part of imports and exports (like aliases). But great to have in the comments as additional information :)