| Start |
|---|
| Re-export Typescript allow to re-export declarations. You can bundle all operations in single library Named declarations can be re-exported using shorter syntax Default exports can also be exported, but no short syntax is available. Remember, only one default export per module is possible. Possible is re-export of bundled import When re-exporting bundle, declarations may be overridden when declared explicitly. Usage example |
| Hello world module Load using directory index If directory contains file named Example usage of defined modules |
| Exporting/Importing declarations Any declaration (variable, const, function, class, etc.) can be exported from module to be imported in other module. Typescript offer two export types: named and default. Named export When importing named exports, you can specify which elements you want to import. Default export Each module can have one default export which can be imported using Bundled import Typescript offers method to import whole module into variable |
Read Article
https://develop.horje.com/learn/1434/reference