场景:
我在项目中编写了一个全局变量声明文件 service.d.ts ,内容如下:
```typescript
/// <reference types="axios" />
declare namespace AppService {
type BaseAxiosRes = AxiosResponse // AxiosResponse 显示的类型是 any
}
```
我想在全局 namespace 中引用 axios 的 AxiosResponse 类型,我使用了三斜线指令引入了 axios ,但是下面的 AxiosResponse 类型显示为 any 。
图片贴在下面,没有上传图床,直接用的 segmentfault 的图片,v 站如果加载不了就复制链接看吧

