typescript import *d.ts only instead of source code *.ts

前端 未结 0 596
忘掉有多难
忘掉有多难 2021-02-13 10:53

I prefer to do this trick because I want to import a.d.ts only for tree-shaking reasons. I need the type declaration only without source code. If I directly import

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