I have a webapp with JavaScript and websocket applied inside the webapp,
Now, I wanted to try to move my webapp to typescript which is type safe,
The problem is, when I declare and initialize the websocket, the typescript (in visual studio 2012) generating an error: "The property 'WebSocket' does not exist on value of type 'Window'"
But in the JavaScript, the websocket is running and no error,
This is the code:
var Socket = window.WebSocket || window.MozWebSocket;
in JavaScript it's alright, but in the typescript it genereated the error,
How can I solve this? Or is there a way in Visual Studio 2012 to ignore the error so the typescript can be built?