添加ts 全局类型声明 declare,ts和vue文件都无法使用
SanpLee opened this issue · comments
SanpLee commented
- I'm sure this does not appear in the issue list of the repository
基本信息
- 依赖包名 及 版本: arco-design-pro-vue@2.7.2
- 框架版本: vue3.2.4
- 浏览器版本: chrome118.0.0.0
预期结果
vue和ts文件中都一个直接使用类型
复现步骤
在src/types/global.ts 中添加 declare类型声明
额外补充
在src/types/新建了xx.d.ts文件也不行
SanpLee commented
eslint 的问题,已解决