typescript - VSCode typescript intellisense 不建议嵌套命名空间中的接口
问题描述
我有一个两级嵌套命名空间,在全局范围内有一堆接口。
declare global {
namespace A {
namespace B {
interface I1 {
}
interface I2 {
}
}
}
}
例如,我编写了一些带有A.B.I1
接口实现的 C 类。
class C implements A.B.I1 {}
Ts 编译器正确实现它,但是在键入时A.B ...
没有接口的建议,在 namespace 中声明B
。
在其他 IDE 中检查:建议出现在 WebStorm 而不是 Visual Studio 2019 中。
VSCode 1.43
TS 3.8.0
没有发现任何有此类问题的东西。
不胜感激,如果有人给建议..
谢谢。
解决方案
推荐阅读
- spring - Spring mvc sessionRegistry 返回空的委托人列表
- ansible - 如何生成具有范围的列表并将其保存在剧本的 var 中?
- java - 如何在 spring boot 中使用 thymleaf 和 Flying Saucer 准备 pdf 报告
- java - Spring Cache 将变量 int 配置为 @Cacheable 注释中的键
- python - 如何在 python List 上强制执行特定类型
- android - WorkManager 使用 setForegroundAsync() 和 ListenableWorker
- javascript - fullcalendar:未捕获的 TypeError:无法读取 null 的属性“nodeName”
- pandas - 如何使用 Matplotlib 绘制频率分布图?
- django - 如何在站点地图 Django 的 url 中添加斜杠 (/)?
- php - Woocommerce如何更改结帐字段文本标签的颜色