There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Strange: Included typescript file was not added with TypeScriptCompile
This caused a problem for me with the compiler did not pick up some types correctly. It simply did not realize the type definition was a typescript file. (File properties : BuildAction = Content instead of TypeScriptCompile)
I noticed this both in a real project and when I was experimenting to try to reproduce.
I even tried to exclude and include the file repeatedly with no change. First when I excluded the file, closed the proj, opened it again, and included the file VS finally got it right.
Unfortunately I can not create steps to reproduce. This happens, but not all the times... :/
Now I know I need to double check BuildAction for my files if they are not being picked up by the compiler.
Perhaps "include file" in Visual Studio is a bit flakey when it comes to typescript file types?