'WebStorm does not display the same typescript "Initial type" as the test environment

I have a little problem, on WebStorm I don't have the same type value as on the test environment of typescript. This is a problem because it raises an error when using a function. The problem comes from the IDE ?

WebStorm:

webstorm1

TypeScript:

typescript1

WebStorm:

webstorm2

TypeScript:

typescript2



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source