You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It sould be nice to have same in typescript. Without it, it is annoying to write something like:
// module1.ts
module Module1{// I should explicit wrap to module for export// ... module declaration}exportdefaultModule1// module2.ts
module Module2{// ... module declaration}exportdefaultModule2// index.tsexport{defaultasModule1}from"./module1"export{defaultasModule2}from"./module2"// usage.tsimport*asModulesfrom"./index"// can be used Modules.Module1.
This can be done better with proposal:
// module1.ts// just a module declaration, without wrapping to explicit module// module2.ts// just a module declaration, without wrapping to explicit module// index.tsexport*asModule1from"./module1"export*asModule2from"./module2"// usage.tsimport*asModulesfrom"./index"// can be used Modules.Module1.
The text was updated successfully, but these errors were encountered:
There is already exists es7 proposal https://github.com/leebyron/ecmascript-more-export-from
and it accepted to stage-1.
It sould be nice to have same in typescript. Without it, it is annoying to write something like:
This can be done better with proposal:
The text was updated successfully, but these errors were encountered: