解决TS4023: Exported variable industryData has or is using name ‘xx‘ from external module “xx“ but…报错

前言

本文记录解决 TS4023: Exported variable industryData has or is using name ‘xx’ from external module “xx” but cannot be named. 报错。该报错不影响TS编译,如果你跟我一样有强迫症的话,可以参考。

报错 TypeScript 版本:5.3.3

图示

在这里插入图片描述

以上代码在 [email protected] 中正常,但是在我新建一个项目并使用最新版 TypeScript 后报错。
我们看下报错中的 ResponseDataWrapper 代码,它是定义在另一个文件中

interface ResponseDataWrapper<T = any> 

猜你喜欢

转载自blog.csdn.net/dizuncainiao/article/details/135629921
今日推荐