Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR typescripf declaration file

I've started using typescript, easily found declaration (d.ts) files for angular.js and jquery. Can't find one for SignalR jquery though.

Can you guys help me. I could just create an interface that extends JQuery but somehow it's not working...

var hub = $.connection.myHub

it's complaining about connection thing... says "The property 'connection' doesn't exist on value of type 'JQueryStatic'"

like image 248
iLemming Avatar asked Nov 09 '12 18:11

iLemming


1 Answers

DefinitelyTyped has a complete TypeScript definition for SignalR.

Just updated the link, thanks Stuart

like image 140
George Mavritsakis Avatar answered Sep 21 '22 20:09

George Mavritsakis