【问题标题】:TypeScript export default from another module [duplicate]TypeScript从另一个模块导出默认值[重复]
【发布时间】:2021-01-09 11:37:19
【问题描述】:

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

export * from './another'; //Can't export default from another.
export m from './another';
export default m;  //That's ok.

【问题讨论】:

标签: typescript


【解决方案1】:

用途:

export { default } from './another';

【讨论】:

    猜你喜欢
    • 2017-04-29
    • 1970-01-01
    • 2019-12-26
    • 1970-01-01
    • 2016-05-15
    • 2017-10-26
    • 1970-01-01
    • 2019-04-09
    • 1970-01-01
    相关资源
    最近更新 更多