TypeScript 从另一个模块导出默认值

lei*_* li 5 typescript

如何在一行中从另一个模块导出默认值?

export * from './another'; //Can't export default from another.
Run Code Online (Sandbox Code Playgroud)
export m from './another';
export default m;  //That's ok.
Run Code Online (Sandbox Code Playgroud)

cca*_*ton 6

使用:

export { default } from './another';
Run Code Online (Sandbox Code Playgroud)