Use import instead require with typeof

前端 未结 0 573
抹茶落季
抹茶落季 2021-02-05 08:10

I have a require statement for a third party ES6 class like this:

const Machine: typeof IMachine = require(\'lib\')
         


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