What does it mean that in Visual Studio the term "class emulation can be converted to a class", and where does it come from?

I am working on a large TypeScript application in VS 2013. I have ReSharper and WebEssentials installed.

From time to time, when I have a level function of the exported module, “something” emphasizes it and hints that “class emulation can be converted to class”. What does this mean and what instrument does it come from?

Has anyone seen this before? Surprisingly, there are no Google results for quotation marks.

+5
source share
1 answer

It should look like an emulated class ... ReSharper may guess that you hardcoded your own class in Typescript, rather than defining it and letting the compiler create JS.

Adding a void return type removes the warning ...

+9
source

Source: https://habr.com/ru/post/1236955/


All Articles