title: how to integrate signalr in typescript project?
body: <p>I am using asp.net mvc 4.5 project with typescript in client side. I have installed and configured signalR in the server side. In the client side i have installed signalr.TypeScript.DefinitelyTyped with jquery,</p>
  
  <p>i have referred signalr by below in my typescript file on the top,
  /// </p>
  
  <p>and i have created interface file for my hub,</p>
  
  <pre><code>interface SignalR {
      ForecastHub: {
          client: {
              DeleteProject(projectId: number)
          };
          server: {
              send(name: string, message: string)
          };
      };
  }
  </code></pre>
  
  <p>and my main code in ts is below,</p>
  
  <pre><code>var client = $.connection.ForecastHub;
  client.client.DeleteProject = function (projectId) {
      alert(projectId);
  };
  
  $.connection.hub.start().done(function () {
  });
  </code></pre>
  
  <p>in the runtime i am getting an error 'Cannot read property 'ForecastHub' of undefined'</p>
  
  <p>so how to import signalr in the typescript ts. please provide solution to integrate signalR in typescript project.</p>