I have a weird issue where the following (TypeScript) code fragment is reporting an error in WebStorm:
arr = ;
arr.push('mystring'); // error: Argument types do not match parameters
This is very basic TypeScript that compiles correctly with the TypeScript compiler on the command line (without errors).
It also validates when creating a new project in WebStorm with a .ts file with above code.
The same file does not validate (any more?) in my current project.
How does the built-in IntelliSense support for TypeScript work? Does it use an external TypeScript compiler?
Note: I have a rather custom setup with FileWatchers and I also have a locally installed TypeScript compiler.
I have no idea what affects/can affect the IntelliSense validation.
The file only contains the lines above, so there shouldn't be any interference with other TypeScript files in the project.
Can anybody shed some light on this?
Not sure how I can track down this problem.