Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

关于typescript声明文件

微信图片_20201125142150.png
微信图片_20201125142158.png

设置了index.d.ts声明文件还是不行,仍然报错。哪里配置的不对么?

求大佬告知~~~


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

已经解决配置没有问题:
解决方案:
types声明文件.d.ts其中的需要与里面需要声明的模块名称相同
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

31 comments

46.9k users

...