Why can't I `import {}` from `export default {}` in typescript

前端 未结 0 1321
忘了有多久
忘了有多久 2021-01-14 05:23

I have a typescript file:

#util.ts
export default {name: \'name\'}

I import it from another file:

import {name}          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题