"Class emulation may be converted to class" 提示在 Visual Studio 中是什么意思,它从何而来?

What does "Class emulation may be converted to class" hint mean in Visual Studio and where does it come from?

我正在 VS 2013 中开发大型 TypeScript 应用程序。我安装了 ReSharper 和 WebEssentials。

有时当我有一个导出的模块级函数时,"something" 会在它下划线并提示 "Class emulation may be converted to class"。这是什么意思,它来自哪个工具?

有人以前看过这个吗?令人惊讶的是,引号中的这句话没有 Google 个结果。

它看起来一定像一个模拟的 class...ReSharper 可能会猜测您在 Typescript 中硬编码了自己的 class,而不是定义它并让编译器创建 JS。

添加 return 类型的 void 删除警告...